Good code patterns in Python

Max M maxm at mxm.dk
Thu Jul 3 12:09:17 CEST 2003


Theodor Rash wrote:

> (Saw this sig somewhere: 'Comment my code?? Why do you think they call it
> code?')  

My favourite comment of that kind is from Bertrand Meyer, who invented 
Eiffel. I dont remember it exactly, but it goes something like:

"If programmers want to read text, they should buy a cheap novel."

To his defense he was arguing that the code should be documentation in 
itself. Hence programming by contract.

I guess that has been refined now by the tdd camp, where you should be 
able to read what the tested code does by reading the tests.


regards Max M





More information about the Python-list mailing list