Click here to Skip to main content
15,887,304 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: 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 
GeneralRe: Of course, it really depends on the situation... Pin
Mr Morden28-Jul-02 21:09
Mr Morden28-Jul-02 21:09 
GeneralRe: Of course, it really depends on the situation... Pin
Shog929-Jul-02 6:53
sitebuilderShog929-Jul-02 6:53 
GeneralRe: Of course, it really depends on the situation... Pin
Paul M Watt28-Jul-02 21:10
mentorPaul M Watt28-Jul-02 21:10 
That is my sentiment exactly.

I also believe that the context in which the application will perform also makes a difference. The way that a redering loop is formatted in a game or a ray-tracing loop is very important for performance. I am willing to give up a little bit of readablility in order to squeeze out a few extra frames-per-second.

However, if you are dealing with a windows user-interface, speed is not as important. I would much rather have a cleaner formatted code to work with.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

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.