Click here to Skip to main content
15,902,032 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
Armen Hakobyan30-Jul-02 6:37
professionalArmen Hakobyan30-Jul-02 6:37 
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 
Well, noone talking about lpszText, but about lpszAppPath, which tells you type AND what this variable for.

UltraJoe wrote:
I'd much rather go back to its definition,

I suppose that you mean a small project, maybe 1-2 classes/cpp files in it. But think about something bigger. Example is not very far - in my company, there are like 30 different modules (.dll and .exe) written by different people. And you use someone else's module and you have no idea in it, you just use it. So to know the type you should find where the variable is declared. It can be global, it can be member of class or just local to the function. Using your method, you can't do that without searching for definition, which can take a lot of time, or maybe you should go to that programmer who did the module and ask him? Smile | :) I would fire you for disturbing people by asking such questions Smile | :) lol, or maybe that programmer who has no idea in HN, depends on situation.
I tested that on my own skin, we had some people who liked to call their variables like database_connection. Yeah it says what is that, but what type? ADO Connection object? MFC connection? Just a connection string? And is this a pointer? Smile | :)


Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
GeneralRe: Formatting is important because.... Pin
UltraJoe1-Aug-02 10:01
UltraJoe1-Aug-02 10:01 
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 

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.