Click here to Skip to main content
15,896,118 members

Survey Results

What is the most important thing in writing code?   [Edit]

Survey period: 14 Jun 2004 to 20 Jun 2004

Which of the following would you rank as your #1 goal when writing code?

OptionVotes% 
Writing bug-free code39528.03
Writing easily extensible code23016.32
Writing easily maintainable code45432.22
Writing code that can be understood by others16811.92
Writing fast code372.63
Writing resource-efficient code684.83

View optional text answers (73 answers)


 
GeneralRe: Code that accomplishes the task Pin
Chris Maunder15-Jun-04 6:44
cofounderChris Maunder15-Jun-04 6:44 
GeneralRe: Code that accomplishes the task Pin
Bamaco215-Jun-04 8:53
Bamaco215-Jun-04 8:53 
GeneralWriting code that can be understood by others Pin
Thomas Freudenberg15-Jun-04 0:00
Thomas Freudenberg15-Jun-04 0:00 
GeneralRe: Writing code that can be understood by others Pin
Michael A. Barnhart15-Jun-04 0:32
Michael A. Barnhart15-Jun-04 0:32 
GeneralRe: Writing code that can be understood by others Pin
Bamaco215-Jun-04 9:01
Bamaco215-Jun-04 9:01 
GeneralEasily maintainable code Pin
Phil J Pearson14-Jun-04 23:52
Phil J Pearson14-Jun-04 23:52 
GeneralRe: Easily maintainable code Pin
James R. Twine15-Jun-04 3:58
James R. Twine15-Jun-04 3:58 
GeneralRe: Easily maintainable code Pin
diaphanein15-Jun-04 5:04
diaphanein15-Jun-04 5:04 
This is a great point. Performance is a state of mind, a style almost. If you learn how to write code that is efficient, you can almost do it without thinking.

In .Net, there are some things that you can do that just need to become a force of habit. Things like not using an enumerator to iterate through arrays (have you looked at the IL generated when using a foreach on an array? ick.). Things like caching objects, caching collection counts (if you're sure they're not going to change) make a small, but in the longer term noticeable effect, especially if it saves you 4 calls inside of a tight loop.

Personally, I came into the software business from the hardware side of things. I see programmers excusing poor code as, "Well, the hardware is fast, so my code will be." Just because we have fast hardware, doesn't mean the coder should use it as an excuse to be lazy and write poor code.
GeneralRe: Easily maintainable code Pin
Ralph Walden15-Jun-04 6:09
Ralph Walden15-Jun-04 6:09 
GeneralRe: Easily maintainable code Pin
James R. Twine15-Jun-04 7:40
James R. Twine15-Jun-04 7:40 
GeneralRe: Easily maintainable code Pin
Bamaco215-Jun-04 9:03
Bamaco215-Jun-04 9:03 
GeneralRe: Easily maintainable code Pin
James R. Twine15-Jun-04 7:27
James R. Twine15-Jun-04 7:27 
GeneralRe: Easily maintainable code Pin
Nemanja Trifunovic15-Jun-04 6:25
Nemanja Trifunovic15-Jun-04 6:25 
GeneralResurces Pin
Mordok14-Jun-04 23:23
Mordok14-Jun-04 23:23 
GeneralRe: Resurces Pin
Aaron Eldreth15-Jun-04 4:18
Aaron Eldreth15-Jun-04 4:18 
GeneralRe: Resurces Pin
Mordok15-Jun-04 8:57
Mordok15-Jun-04 8:57 
GeneralRe: Resurces Pin
Aaron Eldreth15-Jun-04 9:27
Aaron Eldreth15-Jun-04 9:27 
GeneralRe: Resurces Pin
Mordok15-Jun-04 22:14
Mordok15-Jun-04 22:14 
GeneralWho wrote CListCtrl again? Pin
Corinna John14-Jun-04 20:20
Corinna John14-Jun-04 20:20 
GeneralRe: Who wrote CListCtrl again? Pin
Gavin Greig15-Jun-04 2:36
Gavin Greig15-Jun-04 2:36 
GeneralRe: Who wrote CListCtrl again? Pin
peterchen15-Jun-04 7:53
peterchen15-Jun-04 7:53 
GeneralRe: Who wrote CListCtrl again? Pin
Chris Richardson15-Jun-04 9:17
Chris Richardson15-Jun-04 9:17 
GeneralRe: Who wrote CListCtrl again? Pin
Roger Wright15-Jun-04 4:38
professionalRoger Wright15-Jun-04 4:38 
GeneralRe: Who wrote CListCtrl again? Pin
Chris Richardson15-Jun-04 9:15
Chris Richardson15-Jun-04 9:15 
GeneralFree bugs. Pin
Maxwell Chen14-Jun-04 19:00
Maxwell Chen14-Jun-04 19:00 

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.