Click here to Skip to main content
16,018,353 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)


 
GeneralRe: Definitely, intuitive naming Pin
Vasudevan Deepak Kumar25-Mar-08 19:11
Vasudevan Deepak Kumar25-Mar-08 19:11 
GeneralRe: Definitely, intuitive naming Pin
Tom126-Mar-08 7:39
Tom126-Mar-08 7:39 
GeneralRe: Definitely, intuitive naming Pin
wout de zeeuw28-Mar-08 9:00
wout de zeeuw28-Mar-08 9:00 
GeneralLooks like the top four are eqweighted and people just click the top one coz its easy Pin
quakeboy25-Mar-08 2:12
quakeboy25-Mar-08 2:12 
GeneralRe: Looks like the top four are eqweighted and people just click the top one coz its easy Pin
Simon Capewell25-Mar-08 3:56
Simon Capewell25-Mar-08 3:56 
GeneralRe: Looks like the top four are eqweighted and people just click the top one coz its easy Pin
PIEBALDconsult25-Mar-08 4:19
mvePIEBALDconsult25-Mar-08 4:19 
GeneralRe: Looks like the top four are eqweighted and people just click the top one coz its easy Pin
Erik Midtskogen25-Mar-08 4:52
Erik Midtskogen25-Mar-08 4:52 
GeneralRemember, it's *MOST* improves... Pin
Lebear-0125-Mar-08 2:00
Lebear-0125-Mar-08 2:00 
All of these have significant benefits, but I have to defer to good comments as the best tool for making code maintainable. If I can read a short comment block that explains the purpose of the following code block, it's the best possible head-start.

Intuitive variable names is great; very high on my list, in fact. But I don't want to have to even read the code if I'm not in the right place. I shouldn't have to analyze code, at any level, to determine what the purpose of that code is.

Good coding practices and standards is also great. I don't want to have to weave through a mess of spaghetti just to end up pulling out my hair when it's all done. (Far too little now, as it is, anyway!) But again, do I need to read this code?

I'm my worst critic. I'm working solo on a huge project, and I'm often updating or inserting comments because I want to be able to quickly determine what code I'm looking at, and second, to determine how it works.
GeneralTo many options Pin
Mohm'ed Melhem25-Mar-08 0:16
professionalMohm'ed Melhem25-Mar-08 0:16 
GeneralRe: To many options Pin
Chris Maunder25-Mar-08 15:58
cofounderChris Maunder25-Mar-08 15:58 
GeneralRe: To many options Pin
Vasudevan Deepak Kumar25-Mar-08 19:13
Vasudevan Deepak Kumar25-Mar-08 19:13 
GeneralUseful comments can explain anything Pin
harold aptroot24-Mar-08 23:13
harold aptroot24-Mar-08 23:13 
GeneralRe: Useful comments can explain anything Pin
firegryphon25-Mar-08 7:50
firegryphon25-Mar-08 7:50 
GeneralRe: Useful comments can explain anything Pin
harold aptroot25-Mar-08 8:55
harold aptroot25-Mar-08 8:55 
GeneralRe: Useful comments can explain anything Pin
firegryphon25-Mar-08 8:58
firegryphon25-Mar-08 8:58 
GeneralRe: Useful comments can explain anything Pin
cmk25-Mar-08 20:15
cmk25-Mar-08 20:15 
GeneralHard to pick just one PinPopular
PIEBALDconsult24-Mar-08 7:33
mvePIEBALDconsult24-Mar-08 7:33 
GeneralRe: Hard to pick just one Pin
Don Driskell24-Mar-08 9:31
Don Driskell24-Mar-08 9:31 
GeneralRe: Hard to pick just one Pin
PIEBALDconsult24-Mar-08 11:26
mvePIEBALDconsult24-Mar-08 11:26 
GeneralRe: Hard to pick just one Pin
Owen3725-Mar-08 7:58
Owen3725-Mar-08 7:58 
GeneralRe: Hard to pick just one Pin
squeek25-Mar-08 11:33
squeek25-Mar-08 11:33 
GeneralRe: Hard to pick just one Pin
PIEBALDconsult25-Mar-08 13:15
mvePIEBALDconsult25-Mar-08 13:15 
GeneralRe: Hard to pick just one Pin
Draugnar27-Mar-08 8:01
Draugnar27-Mar-08 8:01 
GeneralNarrative Pin
Shog924-Mar-08 7:16
sitebuilderShog924-Mar-08 7:16 
GeneralRe: Narrative Pin
PIEBALDconsult24-Mar-08 7:32
mvePIEBALDconsult24-Mar-08 7:32 

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.