|
Re: Design best practice : put state-independent methodsonclass side?: msg#00173lang.smalltalk.squeak.beginners
Hi ramon I agree with you. Now just without reading the complete thread, and for more complex situations here is my guideline to use singleton: I use one when I need one object "at a time" and not a single access point. Often people confuse time and access. If you can get rid of a singleton just by adding an iv to you domain and adding a reference to point to your "singleton" then it was not a singleton but a global object access. Is it difficult to write that in a mail, a good singleton is a object representing really the fact that you cannot have two objects of the same class at the same time. Stef On Mar 25, 2008, at 10:44 PM, Ramon Leon wrote: (forgot to copy the list)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Install Squeak 3.9 or 3.10 in a Core 2 Duo (64 bits) with Ubuntu, Juan Carlos Bresesti Bosch |
|---|---|
| Next by Date: | Re: Install Squeak 3.9 or 3.10 in a Core 2 Duo (64 bits) with Ubuntu, Offray Vladimir Luna Cárdenas |
| Previous by Thread: | Re: Design best practice : put state-independent methodsonclass side?, David Mitchell |
| Next by Thread: | Re: Design best practice : put state-independent methodsonclass side?, itsme213 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |