Django as exemplary design

Paul Kölle paul at subsignal.org
Sun May 9 16:50:20 EDT 2010


Am 07.05.2010 04:48, schrieb TomF:
> On 2010-05-06 18:20:02 -0700, Trent Nelson said:
>>> I'm interested in improving my python design by studying a large,
>>> well-designed codebase.
>>
>> I'll tell you one of the best ways to improve your Python code: attend
>> one of Raymond Hettinger's Code Clinic workshops at a Python conference
>> and put some up of your work up on the projector for 20+ developers to
>> rip apart, line by line ;-) You'll pick up more in 30 minutes than you
>> ever thought possible.
>
> I don't doubt it. But I'm not really interested in line (micro) level
> code issues at the moment. Not that my code couldn't stand being
> improved, but I'm more interested in seeing how medium/large OO python
> systems are designed. If I could get this from a book I would, but I
> suspect I need to study real code.
Then trac might be a good candidate, start here

http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture

then read

http://trac.edgewall.org/browser/trunk/trac/core.py#latest

there is one rather dubious hack in the implementation of implements() 
but I like the conceptual simplicity.

cheers
  Paul




More information about the Python-list mailing list