Click here to Skip to main content
15,888,286 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: Formatting is important because.... Pin
UltraJoe30-Jul-02 7:55
UltraJoe30-Jul-02 7:55 
GeneralRe: Formatting is important because.... Pin
Armen Hakobyan30-Jul-02 11:53
professionalArmen Hakobyan30-Jul-02 11:53 
GeneralRe: Formatting is important because.... Pin
UltraJoe31-Jul-02 8:04
UltraJoe31-Jul-02 8:04 
GeneralRe: Formatting is important because.... Pin
Armen Hakobyan31-Jul-02 11:47
professionalArmen Hakobyan31-Jul-02 11:47 
GeneralRe: Formatting is important because.... Pin
Philip Patrick31-Jul-02 1:56
professionalPhilip Patrick31-Jul-02 1:56 
GeneralRe: Formatting is important because.... Pin
UltraJoe31-Jul-02 8:09
UltraJoe31-Jul-02 8:09 
GeneralRe: Formatting is important because.... Pin
Philip Patrick31-Jul-02 9:36
professionalPhilip Patrick31-Jul-02 9:36 
GeneralRe: Formatting is important because.... Pin
UltraJoe1-Aug-02 10:01
UltraJoe1-Aug-02 10:01 
Philip Patrick wrote:
Well, noone talking about lpszText, but about lpszAppPath, which tells you type AND what this variable for.
Okay, I'm probably not playing fair by changing examples in mid-stream; I should've used lpszText from the start.

Still, I'd much rather search for the definition (more on that in a second) than trip over the semantics of a line of code by trudging through all the Hungarian junque. Dead | X| For me, the understandability of the code decreases exponentially as I see more "lpsz" garbage.

Numerous people have noted that searching for a definition can be tedious. I disagree; it won't be tedious IF the project is organized well, not just in terms of classes or a single file, but also in terms of what goes into what files. An undecorated name is either an argument to the current function/method, in the class or a superclass thereof, or a globalEek! | :eek: . (No, I'm not trying to claim that globals are good, nor am I condemning them. Completely different subject.) That makes 3 places to look, and that's it. More often than not, I'll need that file anyhow, for comments relating to the variable (when necessary), or other information that won't come from Hungarian Notation anyhow.
GeneralRe: Formatting is important because.... Pin
KarstenK30-Jul-02 1:10
mveKarstenK30-Jul-02 1:10 
GeneralRe: Formatting is important because.... Pin
Marc Clifton31-Jul-02 11:51
mvaMarc Clifton31-Jul-02 11:51 
GeneralIf it looks bad, it most likely runs bad as well... Pin
George28-Jul-02 21:00
George28-Jul-02 21:00 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
Alexandru Savescu28-Jul-02 23:21
Alexandru Savescu28-Jul-02 23:21 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
George29-Jul-02 3:26
George29-Jul-02 3:26 
GeneralRe: If it looks bad, it most likely runs bad as well... Pin
Anonymous29-Jul-02 22:32
Anonymous29-Jul-02 22:32 
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 
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 

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.