Re: Django as exemplary design

2010-05-13 Thread Lawrence D'Oliveiro
In message mailman.2704.1273192642.23598.python-l...@python.org, MRAB wrote: Albert Hopkins wrote: On Thu, 2010-05-06 at 16:38 -0700, Patrick Maupin wrote: I don't know how this applies to reading other peoples' code, but recent research shows we learn more from success than failure

Re: Django as exemplary design

2010-05-13 Thread Lawrence D'Oliveiro
In message hs10nb$6o...@panix5.panix.com, Aahz wrote: My suspicion is that very very few medium/large systems are truly well-designed. Conway’s law applies: the product of any human endeavour reflects the organizational structure that produced it. If the individuals/groups writing the

Re: Django as exemplary design

2010-05-09 Thread Paul Kölle
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

Re: Django as exemplary design

2010-05-07 Thread Aahz
In article 2010050619481239450-tomfsess...@gmailcom, TomF tomf.sess...@gmail.com wrote: 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

Re: Django as exemplary design

2010-05-06 Thread Aahz
In article 4be132f1$0$20639$426a7...@news.free.fr, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: The more bad code (mine or not) I have to maintain (or even just read and understand), the more I pay attention to my own design and code quality. Sometimes you only

Re: Django as exemplary design

2010-05-06 Thread Patrick Maupin
On May 4, 5:34 pm, TomF tomf.sess...@gmail.com wrote: On 2010-05-04 07:11:08 -0700, alex23 said: (I also think there's value to be gained in studying _bad_ code, too...) True, although whether that's time well spent is another question. I don't know how this applies to reading other

Re: Django as exemplary design

2010-05-06 Thread Albert Hopkins
On Thu, 2010-05-06 at 16:38 -0700, Patrick Maupin wrote: I don't know how this applies to reading other peoples' code, but recent research shows we learn more from success than failure That's good to learn, because for years I have been intentionally failing in order to learn from it and

Re: Django as exemplary design

2010-05-06 Thread MRAB
Albert Hopkins wrote: On Thu, 2010-05-06 at 16:38 -0700, Patrick Maupin wrote: I don't know how this applies to reading other peoples' code, but recent research shows we learn more from success than failure That's good to learn, because for years I have been intentionally failing in order to

RE: Django as exemplary design

2010-05-06 Thread Trent Nelson
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+

Re: Django as exemplary design

2010-05-06 Thread 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

Re: Django as exemplary design

2010-05-05 Thread Bruno Desthuilliers
TomF a écrit : On 2010-05-04 07:11:08 -0700, alex23 said: (snip) (I also think there's value to be gained in studying _bad_ code, too...) True, although whether that's time well spent is another question. The more bad code (mine or not) I have to maintain (or even just read and

Re: Django as exemplary design

2010-05-04 Thread Bruno Desthuilliers
TomF a écrit : I'm interested in improving my python design by studying a large, well-designed codebase. Someone (not a python programmer) suggested Django. I realize that Django is popular, but can someone comment on whether its code is well-designed and worth studying? Carl makes some

Re: Django as exemplary design

2010-05-04 Thread alex23
TomF tomf.sess...@gmail.com wrote: I'm interested in improving my python design by studying a large, well-designed codebase.  Someone (not a python programmer) suggested Django.  I realize that Django is popular, but can someone comment on whether its code is well-designed and worth studying?

RE: Django as exemplary design

2010-05-04 Thread Michael . Coll-Barth
From: alex23 (I also think there's value to be gained in studying _bad_ code, too...) Oh, very true. And not just true for python. But, only if an 'expoert' points out why it is bad and provides an alternative. And saying things like, it isn't pyhonic or that such and such is a more

Re: Django as exemplary design

2010-05-04 Thread Carl Banks
On May 4, 12:37 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: TomF a écrit : I'm interested in improving my python design by studying a large, well-designed codebase.  Someone (not a python programmer) suggested Django.  I realize that Django is popular, but

Re: Django as exemplary design

2010-05-04 Thread TomF
Thanks to everyone for their comments. On 2010-05-04 07:11:08 -0700, alex23 said: TomF tomf.sess...@gmail.com wrote: I'm interested in improving my python design by studying a large, well-designed codebase.  Someone (not a python programmer) suggested Django.  I realize that Django is popular,

Re: Django as exemplary design

2010-05-03 Thread Carl Banks
On May 3, 12:24 pm, TomF tomf.sess...@gmail.com wrote: I'm interested in improving my python design by studying a large, well-designed codebase.  Someone (not a python programmer) suggested Django.  I realize that Django is popular, but can someone comment on whether its code is well-designed