Click here to Skip to main content
15,887,435 members

Survey Results

Is the way source code looks as important as how it runs?   [Edit]

Survey period: 29 Jul 2002 to 4 Aug 2002

Some people are code formatting nuts while others feel that as long as it's tight it's good enough. What's your opinion?

OptionVotes% 
Formatting is most important because nothing's worth doing if you don't look good doing it.756.22
Formatting is important because it makes optimisation, bug fixing etc. easier.64453.44
They are both equally important.34328.46
Performance over good looks. The user doesn't see the code.1068.80
It was hard to write so it should be even harder to read.221.83
I really don't care.151.24



 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
Tim Smith31-Jul-02 5:13
Tim Smith31-Jul-02 5:13 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
Mike Pulice30-Jul-02 12:06
Mike Pulice30-Jul-02 12:06 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
SHaroz1-Aug-02 12:42
SHaroz1-Aug-02 12:42 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
jan larsen2-Aug-02 2:12
jan larsen2-Aug-02 2:12 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
Paul Watson2-Aug-02 6:20
sitebuilderPaul Watson2-Aug-02 6:20 
GeneralI am a zealot Pin
Christian Graus28-Jul-02 19:51
protectorChristian Graus28-Jul-02 19:51 
GeneralRe: I am a zealot Pin
James T. Johnson28-Jul-02 20:06
James T. Johnson28-Jul-02 20:06 
GeneralRe: I am a zealot Pin
Christian Graus28-Jul-02 20:19
protectorChristian Graus28-Jul-02 20:19 
James T. Johnson wrote:
But if you look at the lifetime of an application the extra time it takes to maintain the poorly formatted code could add a lot more time than the few extra cycles you save by using a particular way of doing things.

I think you missed my point.

James T. Johnson wrote:
If you are looking at the here and now then by all means current performance means everything.

Current performance IS everything. But to be honest, what I was trying to say is that I do not see the dichotomy, but if I had to choose, performance is the winner.

James T. Johnson wrote:
Personally I go for readability, as you could tell from my stance on casting etc

I hope you're being ironic.... A major reason I hate all that casting is that C# is hard to read at times because it's too verbose.

Overall my point ( obviously poorly made ) is that there is no dichotomy but if a false one is to be imposed by the poll, then performance is obviously number one, although I think performance is likely to *improve* if the code is well formatted, because it's easier for people to go back and change other peoples code to make improvements if it is easy to read.


Christian

come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
GeneralRe: I am a zealot Pin
James T. Johnson28-Jul-02 21:12
James T. Johnson28-Jul-02 21:12 
GeneralRe: I am a zealot Pin
Tomasz Sowinski29-Jul-02 1:11
Tomasz Sowinski29-Jul-02 1:11 
GeneralRe: I am a zealot Pin
Christian Graus29-Jul-02 1:40
protectorChristian Graus29-Jul-02 1:40 
GeneralRe: I am a zealot Pin
Joe Sonderegger29-Jul-02 1:32
Joe Sonderegger29-Jul-02 1:32 
GeneralRe: I am a zealot Pin
Mauro Gagna29-Jul-02 11:59
Mauro Gagna29-Jul-02 11:59 
GeneralRe: I am a zealot Pin
Mike Klimentiev29-Jul-02 8:53
Mike Klimentiev29-Jul-02 8:53 
GeneralRe: I am a zealot Pin
Christian Graus29-Jul-02 12:32
protectorChristian Graus29-Jul-02 12:32 
GeneralRe: I am a zealot Pin
Kastellanos Nikos28-Jul-02 20:41
Kastellanos Nikos28-Jul-02 20:41 
GeneralRe: I am a zealot Pin
Roger Wright29-Jul-02 4:08
professionalRoger Wright29-Jul-02 4:08 
GeneralRe: I am a zealot Pin
Christian Graus29-Jul-02 12:33
protectorChristian Graus29-Jul-02 12:33 
GeneralRe: I am a zealot Pin
Roger Wright29-Jul-02 19:54
professionalRoger Wright29-Jul-02 19:54 
GeneralRe: I am a zealot Pin
James R. Twine29-Jul-02 4:55
James R. Twine29-Jul-02 4:55 
GeneralRe: I am a zealot Pin
Christian Graus29-Jul-02 12:34
protectorChristian Graus29-Jul-02 12:34 
GeneralRe: I am a zealot Pin
James R. Twine29-Jul-02 18:53
James R. Twine29-Jul-02 18:53 
GeneralRe: I am a zealot Pin
Mike Pulice30-Jul-02 12:09
Mike Pulice30-Jul-02 12:09 
GeneralRe: I am a zealot Pin
Christian Graus30-Jul-02 12:35
protectorChristian Graus30-Jul-02 12:35 
GeneralOf course, it really depends on the situation... Pin
Shog928-Jul-02 18:17
sitebuilderShog928-Jul-02 18:17 

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.