What kind of whitespaces do you use?
Printable View
What kind of whitespaces do you use?
I go with option 2. I hate too much spaceyness, but I like to read code.
--Garfield
I'd rather write code fast, not waste time with spaces
Oskilian
But it is so much harder to read in future reference for debugging. That, and it takes about a millisecond to hit the space bar.
Um you forgot:
Code:
for (x
;
x
<
10
;
x
++
;
)
i go with #1
I prefer #2 - it's not too spaced out, but I can easily edit the code if I need too.
Yeh, I go with Evenflow (hey that rhymes). I need to read the code when it's done.
hmmm... speaking of which... i adopted the practice of putting a space between the opening parenthesis in a function calls parameter list, as well as the protype/declaration... and, as such, it annoys me when reading other's code... there should be a compiler's limit on the number of lines in a code block! :)
i like gamegod's suggestion.....
I must be one of the few who prefers #3. Not only is it easy to read and is consistent, it also looks nice and that's important :D
However, I don't space my semicolons, that's just plain wierd. This is my preference.
for ( i = 0; i < something; i++ ) {
c'mon mr. Unregistered, don't make a moderator close this nice little thread, if you want to harass garfield, open a separate thread, and Garfield: don't answer it, you could make a moderator close this thread.
by the way: why do you say that to Garfield, everyone has it's own way to code.
Oskilian
#1 is good for robots
#2 is good for people semi-new to computers (not using them for your whole life)
#3 is good for real computer gurus, I use #3, becouse coding is instant, I think and it is 'instantly' typed. I've been typing for almost my whole life, so 'time' really dont matter to me, I type with patternz, whitch lets me type a huge amount of charachters quikly, and I really dont care, cuz its great readabuility!
for( int sloop = 0 ; sloop < blah ; sloop++ )
:)
SPH
to each his own... but given your age i think you can only know so much... good luck then...
Uh oh! let's all change our votes to #3 because it's "for gurus"!
I vote 2 - I can't stand too many spaces, and it's still readable without looking like crud.