[cap-talk] Singletons Considered Harmful

Kenton Varda kenton at google.com
Tue Mar 30 14:31:21 PDT 2010

On Tue, Mar 30, 2010 at 10:30 AM, Raoul Duke <raould at gmail.com> wrote:

> the page starts off saying that singletons are globals, and that OO
> devs should already know that globals are bad. i guess i don't see the
> real world of OO code as being that clear-cut. a lot of OO code --
> arguably bad code, but still -- has objects with member variables
> which are global to the object's methods. so some use of OO is just a
> fractal refactoring of old fashioned code with globals. (i'm not
> saying singletons are bad, i'm just trying to say that i think that
> part of the page sounds like it doesn't know how to take its own
> advice.)

I'm confused.  Are you saying that singletons and globals aren't necessarily
equivalent, or are you saying that singletons are not contrary to OO design
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eros-os.org/pipermail/cap-talk/attachments/20100330/5395b6f4/attachment.html 

More information about the cap-talk mailing list