+ 6

In your opinion, what is the ugliest indentation style that you've ever seen?

Try to include what the style looks like in your answer so everyone else can cringe, too!

9th Mar 2018, 9:06 PM
Erik Johanson
Erik Johanson - avatar
2 Respuestas
+ 10
My favorite style is the K&R style, followed by Allman (which is how I originally learned in the 90s). K&R: if (x == y) { x++; foo(); } else { x--; bar(); } ALLMAN: if (x == y) { x++; foo(); } else { x--; bar(); } The ugliest indentation style, in my opinion, is the Banner and Pico styles. PICO: if (x == y) { x++; foo(); } else { x--; bar(); } BANNER: if (x == y) { x++; foo(); } else { x--; bar(); } ^ewwwwww :D
9th Mar 2018, 9:14 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
1. A lack thereof. 2. Spaces instead of tabs.
9th Mar 2018, 11:45 PM
non