is there any principle when writing python function
rantingrick at gmail.com
Sat Aug 27 19:01:47 EDT 2011
On Aug 27, 5:21 pm, Emile van Sebille <em... at fenx.com> wrote:
> On 8/27/2011 2:57 PM Ben Finney said...
> > Emile van Sebille<em... at fenx.com> writes:
> >> Code is first and foremost written to be executed.
> > “Programs must be written for people to read, and only incidentally for
> > machines to execute.”
> > —Abelson& Sussman, _Structure and Interpretation of Computer Programs_
> That's certainly self-fulfilling -- code that doesn't execute will need
> to be read to be understood, and to be fixed so that it does run.
> Nobody cares about code not intended to be executed. Pretty it up as
> much as you have free time to do so to enlighten your intended audience.
> Code that runs from the offset may not ever again need to be read, so
> the only audience will ever be the processor.
Code may need to be extended someday no matter HOW well it executes
today. Also, code need to be readable so the readers can learn from
More information about the Python-list