[Chicago] Factoring fun with functions in Python
orblivion at gmail.com
Wed Nov 14 05:35:17 CET 2012
One thing I struggle with on this count is that spitting it up to this
degree makes it confusing all over again, because there's so many
functions, so many lines of logic to follow. There's no indicating what the
"main idea" is, you just have to read it all to find out what isn't being
called by everything else.
The only solutions I've come up with are A) making functions small but not
that small, and B) defining functions inside other functions, so that it's
clear what functions are there purely for the benefit of other functions.
Any ideas on that front? Isn't there such a thing as splitting functions up
On Nov 13, 2012 2:10 PM, "Cezar Jenkins" <emperorcezar at gmail.com> wrote:
> I like it.
> At one point, many moons ago I was a youngling and didn't think that
> readability was paramount.
> Then I inherited a giant jumbled PHP app. We now use Python.
> On Nov 13, 2012, at 10:59 AM, Garrett Smith <g at rre.tt> wrote:
> > As penance for missing the last several Chipys, I've extended "solving
> > embarrassing obvious problems" to Python:
> > Will be interested to hear feedback from this group :)
> > Garrett
> > _______________________________________________
> > Chicago mailing list
> > Chicago at python.org
> > http://mail.python.org/mailman/listinfo/chicago
> Chicago mailing list
> Chicago at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chicago