Click here to Skip to main content
15,921,577 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: All of the above, without a CListCtrl Pin
Prakash Nadar18-Jun-04 6:53
Prakash Nadar18-Jun-04 6:53 
Generalbug free? wtf? Pin
Prakash Nadar17-Jun-04 1:35
Prakash Nadar17-Jun-04 1:35 
GeneralRe: bug free? wtf? Pin
ckatili18-Jun-04 8:54
ckatili18-Jun-04 8:54 
GeneralRe: bug free? wtf? Pin
ColinDavies10-Oct-04 14:30
ColinDavies10-Oct-04 14:30 
GeneralBug-free, then Elegant Pin
Vega0216-Jun-04 6:10
Vega0216-Jun-04 6:10 
GeneralRe: Bug-free, then Elegant Pin
Jörgen Sigvardsson16-Jun-04 6:35
Jörgen Sigvardsson16-Jun-04 6:35 
GeneralRe: Bug-free, then Elegant Pin
Mike Dimmick16-Jun-04 6:54
Mike Dimmick16-Jun-04 6:54 
GeneralRe: Bug-free, then Elegant Pin
Vega0216-Jun-04 6:57
Vega0216-Jun-04 6:57 
It takes considerably longer (in my opinion) to do it that way instead of making it ugly but bug-free the first time. If a file can be made functional - though not optimized or understandable - quickly, then other developers can immediately take that and begin using it in code. In this manner, you can continue to optimize the original file for later inclusion while simultaneously giving others access to its functionality so that they can test their own components.

Also, retesting something like this isn't as hard as it may seem. Remember that functional code is already there and fresh on your mind. All a developer has to do is clean it up a bit and perhaps add safety checks, i.e. try-catch statements.

But as you said, Jörgen, writing pretty code from the beginning is always preferable. Poke tongue | ;-P If a coder can pull this off, I tip my hat to him, but this is a feat I've rarely seen accomplished. This isn't to say that we shouldn't follow good programming practices, though, like documenting functions and their parameters from the get-go.

Thanks for your reply!
GeneralRe: Bug-free, then Elegant Pin
Krissh16-Jun-04 21:49
Krissh16-Jun-04 21:49 
GeneralRe: Bug-free, then Elegant Pin
Johan Rosengren20-Jun-04 8:18
Johan Rosengren20-Jun-04 8:18 
GeneralRe: Bug-free, then Elegant Pin
Frisky17-Jun-04 7:33
Frisky17-Jun-04 7:33 
GeneralI'm glad someone mentioned 'elegant'. Pin
Don Clugston17-Jun-04 14:02
Don Clugston17-Jun-04 14:02 
GeneralRe: I'm glad someone mentioned 'elegant'. Pin
Name Removed18-Jun-04 7:52
Name Removed18-Jun-04 7:52 
GeneralRe: I'm glad someone mentioned 'elegant'. Pin
Don Clugston20-Jun-04 13:37
Don Clugston20-Jun-04 13:37 
GeneralRe: Bug-free, then Elegant Pin
Prime Lionheart19-Jun-04 0:37
Prime Lionheart19-Jun-04 0:37 
GeneralInteresting... Pin
Charlie Williams16-Jun-04 5:29
Charlie Williams16-Jun-04 5:29 
GeneralRe: Interesting... Pin
Aaron Eldreth16-Jun-04 5:32
Aaron Eldreth16-Jun-04 5:32 
GeneralRe: Interesting... Pin
Charlie Williams16-Jun-04 6:43
Charlie Williams16-Jun-04 6:43 
GeneralRe: Interesting... Pin
Johan Rosengren20-Jun-04 8:19
Johan Rosengren20-Jun-04 8:19 
GeneralRe: Interesting... Pin
Alvaro Mendez16-Jun-04 10:48
Alvaro Mendez16-Jun-04 10:48 
GeneralRe: Interesting... Pin
Charlie Williams16-Jun-04 11:25
Charlie Williams16-Jun-04 11:25 
GeneralRe: Interesting... Pin
Alvaro Mendez16-Jun-04 13:15
Alvaro Mendez16-Jun-04 13:15 
GeneralFirst things first. Pin
diilbert15-Jun-04 16:02
diilbert15-Jun-04 16:02 
GeneralRe: First things first. Pin
WillemM15-Jun-04 22:06
WillemM15-Jun-04 22:06 
GeneralRe: First things first. Pin
Johan Rosengren20-Jun-04 8:22
Johan Rosengren20-Jun-04 8:22 

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.