Click here to Skip to main content
16,018,417 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: Narrative Pin
Gary Wheeler25-Mar-08 7:36
Gary Wheeler25-Mar-08 7:36 
GeneralRe: Narrative Pin
firegryphon25-Mar-08 7:40
firegryphon25-Mar-08 7:40 
GeneralRe: Narrative Pin
Steve Echols24-Mar-08 10:52
Steve Echols24-Mar-08 10:52 
GeneralRe: Narrative Pin
Blake Miller24-Mar-08 11:54
Blake Miller24-Mar-08 11:54 
GeneralRe: Narrative Pin
Shog924-Mar-08 13:57
sitebuilderShog924-Mar-08 13:57 
GeneralRe: Narrative Pin
Chris Maunder24-Mar-08 19:44
cofounderChris Maunder24-Mar-08 19:44 
GeneralRe: Narrative Pin
Shog925-Mar-08 7:36
sitebuilderShog925-Mar-08 7:36 
GeneralRe: Narrative Pin
firegryphon25-Mar-08 7:48
firegryphon25-Mar-08 7:48 
I adhere to this in all of my updates, and convince others to follow my lead when I have to work with others, but I consider this the creme that makes a program easy to go back to and overall taste good. Most people who wrote their code originally in F66/F4 and updated them to F77 have large sections of single letter variables with tons of implicitly declared variables. The same people also seldom used any comments even when they moved to the newer machine architectures. There are a few that did add comments, but they also often added whitespace. Of the ones that actually updated their programs, most of them would leave out comments or descriptive variable names, but some few of these would create good white spacing. With that I can pull out a yellow pad and just write notes of how the program works and rewrite the thing to take advantage of constructs that are no longer obsolete and restructure it so that it is easy to modify without much effort. I guess I'm in a slightly different place than most people in the modern civilized world though.


*sigh* The trials and tribulations of being a rocket scientist AND a OOP software developer in a previous life.



GeneralRe: Narrative Pin
Tim Yen25-Mar-08 13:12
Tim Yen25-Mar-08 13:12 
GeneralA lost art: Clear and concise code logic and structure Pin
Nemanja Trifunovic24-Mar-08 3:57
Nemanja Trifunovic24-Mar-08 3:57 
GeneralRe: A lost art: Clear and concise code logic and structure Pin
Shog924-Mar-08 6:47
sitebuilderShog924-Mar-08 6:47 
GeneralRe: A lost art: Clear and concise code logic and structure Pin
Alan Balkany25-Mar-08 3:21
Alan Balkany25-Mar-08 3:21 
GeneralRe: A lost art: Clear and concise code logic and structure Pin
Shog925-Mar-08 7:37
sitebuilderShog925-Mar-08 7:37 
GeneralRe: A lost art: Clear and concise code logic and structure Pin
Tim Yen25-Mar-08 13:15
Tim Yen25-Mar-08 13:15 
GeneralBesides CListCtrl.NET ? Pin
W Balboos, GHB24-Mar-08 1:21
W Balboos, GHB24-Mar-08 1:21 
GeneralRe: Besides CListCtrl.NET ? Pin
Gary Wheeler25-Mar-08 7:18
Gary Wheeler25-Mar-08 7:18 
GeneralRe: Besides CListCtrl.NET ? Pin
W Balboos, GHB25-Mar-08 7:19
W Balboos, GHB25-Mar-08 7:19 
GeneralAll Of Above PinPopular
Gautam Jain23-Mar-08 20:25
Gautam Jain23-Mar-08 20:25 
GeneralRe: All Of Above Pin
Vasudevan Deepak Kumar24-Mar-08 0:20
Vasudevan Deepak Kumar24-Mar-08 0:20 
GeneralRe: All Of Above Pin
Ernest Laurentin24-Mar-08 4:34
Ernest Laurentin24-Mar-08 4:34 
GeneralSorry - that's too easy! Pin
Chris Maunder24-Mar-08 19:38
cofounderChris Maunder24-Mar-08 19:38 

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.