Thread: Python brevity
View Single Post
Old May 23rd, 2006, 12:06 PM   #13
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Assuming the code is correct, my measure of acceptable Python brevity is:

1) Let one of your peers look at it, and see if he/she can figure out how it works (in less than a day).

2) Imagine yourself looking at it after a few months and still know what it does.

Lastly, you can play innocent, put the code on the forum, and ask how it works. If nobody answers, you exceeded the brevity limit!

DaWei, may you be smitten with Python desire real good!
__________________
I looked it up on the Intergnats!

Last edited by Dietrich; May 23rd, 2006 at 12:16 PM.
Dietrich is offline   Reply With Quote