Global in multiple files

Alex Martelli aleaxit at yahoo.com
Mon Jun 11 04:55:53 EDT 2001


"Roman Suzi" <rnd at onego.ru> wrote in message
news:mailman.992228330.22368.python-list at python.org...
    ...
> >Mhm. It seems a little too much overhed for a simple list of users.
>
> What if one day you decide to use threads and userlist is to be shared.
> How do you manage your list without breaking it then? But if some object
> will be in charge of this resource, it will be much-much easier. You will
> need blocking written only once.

There is a serious risk in over-designing systems "because
one day it might be handy".  Yeah, right, but meanwhile you're
paying the price of complexity *RIGHT NOW*!-)

"Do the simplest thing that could possibly work", because
"you ain't gonna need it" (where "it" is the rich, complex,
over-engineered, over-designed very general solution:-).

See http://c2.com/cgi/wiki?YouArentGonnaNeedIt ...


Alex






More information about the Python-list mailing list