Python paradigms

Richard Brodie R.Brodie at rl.ac.uk
Mon Apr 10 06:44:26 EDT 2000


"Oleg Broytmann" <phd at phd.russ.ru> wrote in message
news:Pine.LNX.4.21.0004100757580.19783-100000 at fep132.fep.ru...

>    No. Code is intended not only to beeing run on processor, but also (and
> often more important) to beeing read by human. Code is speech, it is the
> way to interchange ideas.
>    In that sense ugly code is not working even if you add three books of
> comments. Code should be readable. Period.

If this were always the case, why does Python have an interactive mode?
Python is a useful language to try out a few rough drafts in too. And I
disagree that elegance and transparency are the same thing. The Fast
Fourier Transform is one of the classic algorithmic optimisations but
produces obscure code. Likewise most of the standard fast sorting
algorithms.





More information about the Python-list mailing list