Click here to Skip to main content
15,896,207 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: 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 
It appears so. It was a symbolic language. The better code is the one that is simpler, less resource using if you compare two codes.

For example if you have a code that has few bugs but a memory usage of few megs and cpu usage only few percents. The other uses cpu 100% because dum desing and complexity but has no bugs. Whichone is better? You can use both but the other works better due to its simplicity, youknow the bugs always can be fixed and there is no such thin as bugless code if you do huge programs.

Another example. Let's assume that there is no bug's in Longhorn, but there are bugs in XP.

Like in this situation you sayed your self:
"Ummm.... I don't think a 500Mhz P2 could run Longhorn, let alone a 200Mhz Pentium."

XP uses less resources hence you can use these same resouces in somewhere else. Now if I use Longhorn and it takes all my resources to have it work what use it is for me? I can't do anything, although there in no bugs. But in XP I can.

I didn't assume that Longhorn would work in 200Mhz cpu.I don't assume it will work decently with my athlon either.

Do you see my point? First do it as simle and as efficient as you can. That it self remowes the bugs that comes from useless complexity. Then you have not as much bugs to fix.

Bugs are often revealed in testing, but you can't test it forever because your code doesn't then benefit anyone and you couldn't because you die in old age before it. Bugless program is a nice ideal but in large programs it's hard if not completely impossible to achieve. Then you'll come back to that resource efficient is a better thing.

ps. I HATE to write this long writings.
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 
GeneralRe: Free bugs. Pin
Corinna John14-Jun-04 20:22
Corinna John14-Jun-04 20:22 
GeneralAs expected... CListCtrl Pin
Weiye Chen14-Jun-04 15:56
Weiye Chen14-Jun-04 15:56 
GeneralRe: As expected... CListCtrl Pin
Navin14-Jun-04 16:05
Navin14-Jun-04 16:05 
GeneralRe: As expected... CListCtrl Pin
Daniel 'Tak' M.14-Jun-04 16:38
Daniel 'Tak' M.14-Jun-04 16:38 
GeneralRe: As expected... CListCtrl Pin
Weiye Chen14-Jun-04 17:54
Weiye Chen14-Jun-04 17:54 
GeneralCan you rank the options really? Pin
devvvy14-Jun-04 15:09
devvvy14-Jun-04 15:09 
GeneralDuplicate option Pin
Daniel Turini14-Jun-04 12:59
Daniel Turini14-Jun-04 12:59 
GeneralRe: Duplicate option Pin
Tim Smith14-Jun-04 17:15
Tim Smith14-Jun-04 17:15 
GeneralRe: Duplicate option Pin
Roger Wright15-Jun-04 4:36
professionalRoger Wright15-Jun-04 4:36 
GeneralRe: Duplicate option Pin
Chris Maunder15-Jun-04 6:32
cofounderChris Maunder15-Jun-04 6: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.