[Tutor] still breaking chains
boB Stepp
robertvstepp at gmail.com
Mon Apr 13 04:21:06 CEST 2015
On Sun, Apr 12, 2015 at 6:47 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
[...]
> One important principle to follow is to write your statements to be very
> simple, so that when something goes wrong it is as easy as possible to
> read the statement and understand what it *actually* says.
+1! This principle I have found to be incredibly helpful as I continue
to learn Python and better programming in general. Where it especially
pays dividends for me is when I must go back to where I was coding
after an extended interruption. I find that when I have followed this
principle I have a much better chance of *immediately* understanding
my intent, then when I have to decipher my thoughts from a "one-liner"
that might occupy less space, but where its complexity has me pausing
in thought to be sure I understand what I actually was trying to do.
--
boB
More information about the Tutor
mailing list