MySQLdb trouble

Thomas Bartkus thomasbartkus at comcast.net
Wed May 10 12:03:39 EDT 2006


"John Salerno" <johnjsal at NOSPAMgmail.com> wrote in message
news:U_n8g.2079$No6.45875 at news.tufts.edu...
> Thomas Bartkus wrote:
>
> > 1) His code body will be less likely to cause migrane headaches when he
> > tries to read and interpret what he did a year from now.  If you are
trying
> > to figure out what is going on with the logic, user names and passwords
can
> > be so much chaff your brain needs to wade through in order to get to the
> > central idea.
> >
> > 2) The coder won't have to repeat himself if he needs to re-open the
> > databases.
>
> Ah, that makes sense! It seemed like an unnecessary step, but in some
> ways it might end up being more efficient.

For the machine - it *is* an unnecessary step.
For the human being who must write and maintain code, it is quite a useful
step.

And a very excellent coding habit to get into ;-)
Thomas Bartkus





More information about the Python-list mailing list