On 21.02.2006., at 17:38, Michael Bayer wrote:
after doing a perl gig for four years, this was one of the most refreshing things about python, the flexiblity of its modules, and that they are refereneceable like any other in-memory object. with perl everything is hardwired to a totally rigid (and global) package namespace.
Power needs control. Usually when I need to quickly evaluate libraries and frameworks in order to judge if I can trust them to do real work with them, I quickly skim over the source code and usually it's easy to see when code is well written or not. This time I have to say that despite the code in sqlalchemy does it using an approach which in many cases I would not like, I was impressed with the cleaness and readability of the whole,
and this convinced me that I can trust it.
if you look around in the standard library, youll find other examples of module naming games like this to get around issues that would otherwise need more complicated solutions. I think as long as you keep namespace games localized and transparent to the outside world they are a great tool.
I would not recomend the standard python library as an example of programming techniques to anyone, but this is my problem.
However I agree, as long as it's done internally in a module it doesn't hurt.
I'm coming from the smalltalk world where everything is done with classes and objects, and I'm conscious that this issues are interesting mainly to oo purists.
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users