Click here to Skip to main content
15,887,027 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
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 
GeneralRe: Of course, it really depends on the situation... Pin
Mr Morden28-Jul-02 21:09
Mr Morden28-Jul-02 21:09 
Shog9 wrote:
Writing complete and thorough documentation

Doesnt work for two reasons.

1) It usually gets out of date pretty quickly. Now you're going to tell me it should be kept up to date. Maybe, but there are a lot of reasons that it isnt, the number one reason being time pressure.

2) No one really reads it anyway. Maybe thats because it isnt accurate, but it's more likely because programmers can find out what the code does by reading the code, and feel more comfortable there.

I've come to an epiphany lately that documentation should not describe how a class works, but rather what it does and why it exists. What and why does not get out of date as quickly as how.

Shog9 wrote:
with long, descriptive variable names

Just descriptive ones will do me. Of course if they need to be long to be descriptive then they should be.

Shog9 wrote:
a well thought out class structure

Simplicity is paramount. A small class is good to, if possible.

Shog9 wrote:
The longer it's going to be around, the better it should be written

True, but there's no reason why code shouldnt be well written no matter what it's reason for being. A lot of prototypes have become full blown projects, and the existing, crappy code has been retained.
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 

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.