Click here to Skip to main content
15,886,199 members

Survey Results

What most improves the readability of source code?   [Edit]

Survey period: 24 Mar 2008 to 31 Mar 2008

Reviewing or even learning someone else's code can be hard work. What's the best way to make code easily approachable for someone else?

OptionVotes% 
Obvious and intuitive names for variables, classes and methods64238.31
Clear and useful comments29417.54
Wise use of Whitespace945.61
Correct Spelling and grammar60.36
Limits on file, class and method sizes281.67
Clear and concise code logic and structure39323.45
The use of common coding patterns and practices1649.79

View optional text answers (58 answers)


 
GeneralClass and method sizes Pin
Santiago Corredoira L.31-Mar-08 22:26
Santiago Corredoira L.31-Mar-08 22:26 
GeneralReal Programmers don't need comments... if the code is obvious Pin
Lizandro Campbell28-Mar-08 13:19
professionalLizandro Campbell28-Mar-08 13:19 
GeneralRe: Real Programmers don't need comments, the code is obvious. Pin
Deano30-Mar-08 6:28
Deano30-Mar-08 6:28 
GeneralRe: Real Programmers don't need comments, the code is obvious. Pin
tmacpherson1-Apr-08 7:50
tmacpherson1-Apr-08 7:50 
GeneralClear and concise. Pin
Pete O'Hanlon27-Mar-08 13:12
mvePete O'Hanlon27-Mar-08 13:12 
GeneralRe: Clear and concise. Pin
Jörgen Sigvardsson27-Mar-08 23:07
Jörgen Sigvardsson27-Mar-08 23:07 
GeneralIt is a shame that hungarian notation is out PinPopular
Joe Sonderegger26-Mar-08 20:55
Joe Sonderegger26-Mar-08 20:55 
GeneralRe: It is a shame that hungarian notation is out Pin
Priyank Bolia27-Mar-08 3:47
Priyank Bolia27-Mar-08 3:47 
GeneralRe: It is a shame that hungarian notation is out Pin
Joe Sonderegger27-Mar-08 6:42
Joe Sonderegger27-Mar-08 6:42 
GeneralRe: It is a shame that hungarian notation is out Pin
Priyank Bolia27-Mar-08 8:10
Priyank Bolia27-Mar-08 8:10 
GeneralRe: It is a shame that hungarian notation is out Pin
_Stilgar_27-Mar-08 8:57
_Stilgar_27-Mar-08 8:57 
GeneralRe: It is a shame that hungarian notation is out Pin
Jörgen Sigvardsson27-Mar-08 23:13
Jörgen Sigvardsson27-Mar-08 23:13 
GeneralRe: It is a shame that hungarian notation is out Pin
Priyank Bolia27-Mar-08 23:27
Priyank Bolia27-Mar-08 23:27 
GeneralRe: It is a shame that hungarian notation is out Pin
Jörgen Sigvardsson27-Mar-08 23:30
Jörgen Sigvardsson27-Mar-08 23:30 
GeneralRe: It is a shame that hungarian notation is out Pin
Priyank Bolia27-Mar-08 23:54
Priyank Bolia27-Mar-08 23:54 
GeneralRe: It is a shame that hungarian notation is out Pin
Draugnar27-Mar-08 7:54
Draugnar27-Mar-08 7:54 
GeneralRe: It is a shame that hungarian notation is out Pin
johannesnestler28-Mar-08 0:52
johannesnestler28-Mar-08 0:52 
GeneralRe: It is a shame that hungarian notation is out Pin
Michael Dunn28-Mar-08 13:55
sitebuilderMichael Dunn28-Mar-08 13:55 
GeneralRe: It is a shame that hungarian notation is out [modified] Pin
Yuancai (Charlie) Ye27-Mar-08 10:48
Yuancai (Charlie) Ye27-Mar-08 10:48 
I still use hungarian notation.

Whenever I read a variable string, I will immediately find the variable type, variable scope (local, member, or global) without using any other tools, even though it may be wrong in some cases. In general, it is very useful to me, in comparison to other notations.

Without using hungarian notation, you have to remember variable scope, or use IDE or other tool with some time cost.

I think that public opinions against hungarian notation are too exaggerated.

charlie ye

modified on Friday, March 28, 2008 12:43 PM

GeneralRe: It is a shame that hungarian notation is out Pin
Jörgen Sigvardsson27-Mar-08 23:11
Jörgen Sigvardsson27-Mar-08 23:11 
GeneralAnd so he named his children "Girlchild-Bobbi" and "Boychild-Bobby", to avoid confusion later on... Pin
Shog929-Mar-08 8:25
sitebuilderShog929-Mar-08 8:25 
GeneralFirst half of the above Pin
peterchen26-Mar-08 3:22
peterchen26-Mar-08 3:22 
GeneralThe less code, the more readable Pin
Marc Clifton26-Mar-08 0:38
mvaMarc Clifton26-Mar-08 0:38 
GeneralRe: The less code, the more readable Pin
peterchen26-Mar-08 3:27
peterchen26-Mar-08 3:27 
JokeRe: The less code, the more readable Pin
Pete O'Hanlon27-Mar-08 13:10
mvePete O'Hanlon27-Mar-08 13:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.