[omaha] Fwd: [odynug] Perl Best Practices but for Python

Jeff Hinrichs jeffh at delasco.com
Fri Aug 19 19:37:32 CEST 2011


On Fri, Aug 19, 2011 at 12:21 PM, Matthew Nuzum <newz at bearfruit.org> wrote:

> On Fri, Aug 19, 2011 at 9:30 AM, Jeff Hinrichs <jeffh at delasco.com> wrote:
>
> > Agreed pep8 is where to start, then goog for "idiomatic python"
> > http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html
> > That has been presented at a previous omahapython meeting.    Before
> > anything else, fire up a python interpreter and then
> > >>> import this
> >
> > read it to get in the mindset of why, then start going through the
> > idiomatic
> > tutorial.
> >
> >
> Boo. -1 for the RTFM replies. Nothing personal (reading PEP-8 is key) but
> there's so much more advice that can be given.
>
> -1 for the -1 ;)
The question asked for a book, so online references are a valid reply.

Besides your comments about testing and code reviews, your comments didn't
cover anything that isn't already in the idiomatic python link.  Not only
that but it is well written, easy to read in chunks and has good reasoning
on why X and not Y.  More than the poster is likely to get from
our anecdotal ramblings.

Now I am +1 on your additional input about testing and reviews but unless
you are working a lot with python on a paying gig or heading a project, the
details of the link are easier to digest.  Face it, no one is going to test
or use revision control until they get bit.  Fingers need to get burned a
bit before people understand why they are good things -- they don't have
context to balance the added management tasks against.

 best,

Jeff


More information about the Omaha mailing list