Click here to Skip to main content
15,886,873 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding Pet Peeves Pin
Marc Clifton30-May-23 13:05
mvaMarc Clifton30-May-23 13:05 
GeneralRe: Coding Pet Peeves Pin
Gerry Schmitz30-May-23 18:13
mveGerry Schmitz30-May-23 18:13 
GeneralRe: Coding Pet Peeves Pin
Anthony Jackson 202130-May-23 20:18
Anthony Jackson 202130-May-23 20:18 
GeneralRe: Coding Pet Peeves Pin
GuyThiebaut30-May-23 20:19
professionalGuyThiebaut30-May-23 20:19 
GeneralRe: Coding Pet Peeves Pin
Lorenzo Bertolino30-May-23 20:50
professionalLorenzo Bertolino30-May-23 20:50 
GeneralRe: Coding Pet Peeves Pin
V.30-May-23 20:51
professionalV.30-May-23 20:51 
GeneralRe: Coding Pet Peeves Pin
Sander Rossel30-May-23 21:45
professionalSander Rossel30-May-23 21:45 
GeneralRe: Coding Pet Peeves Pin
Rich Shealer31-May-23 3:01
Rich Shealer31-May-23 3:01 
I prefer the two-space indent over four because it saves screen space. Visual Studio has a lot of useful windows surrounding the text editor. Using two-space indents allows more text to be seen.

Some of my colleagues and I have used two as the default since the Turbo Pascal days when we only had 80 columns to work with. Seeing a file formatted with four spaces after all these years just seems wasteful.

My code uses has increased the use of shorter functions over the years so running off the screen is not as much of a problem as it was when I started.

GeneralRe: Coding Pet Peeves Pin
hpcoder212-Jun-23 0:23
hpcoder212-Jun-23 0:23 
GeneralRe: Coding Pet Peeves Pin
CPallini31-May-23 1:04
mveCPallini31-May-23 1:04 
GeneralRe: Coding Pet Peeves Pin
megaadam31-May-23 2:15
professionalmegaadam31-May-23 2:15 
GeneralRe: Coding Pet Peeves Pin
Paul Sanders (the other one)31-May-23 3:00
Paul Sanders (the other one)31-May-23 3:00 
GeneralRe: Coding Pet Peeves Pin
Rich Shealer31-May-23 3:07
Rich Shealer31-May-23 3:07 
GeneralRe: Coding Pet Peeves Pin
maze331-May-23 3:09
professionalmaze331-May-23 3:09 
GeneralRe: Coding Pet Peeves Pin
MikeTheFid31-May-23 3:42
MikeTheFid31-May-23 3:42 
GeneralRe: Coding Pet Peeves Pin
Dan Neely31-May-23 4:00
Dan Neely31-May-23 4:00 
GeneralRe: Coding Pet Peeves Pin
jschell31-May-23 5:17
jschell31-May-23 5:17 
GeneralRe: Coding Pet Peeves Pin
obermd31-May-23 3:48
obermd31-May-23 3:48 
GeneralRe: Coding Pet Peeves Pin
BernardIE531731-May-23 4:20
BernardIE531731-May-23 4:20 
GeneralRe: Coding Pet Peeves Pin
jschell31-May-23 5:02
jschell31-May-23 5:02 
GeneralRe: Coding Pet Peeves Pin
Leonardo Pessoa1-Jun-23 5:06
Leonardo Pessoa1-Jun-23 5:06 
GeneralRe: Coding Pet Peeves Pin
jschell1-Jun-23 6:14
jschell1-Jun-23 6:14 
GeneralRe: Coding Pet Peeves Pin
Juan Pablo Reyes Altamirano31-May-23 5:28
Juan Pablo Reyes Altamirano31-May-23 5:28 
GeneralRe: Coding Pet Peeves Pin
Leonardo Pessoa1-Jun-23 5:01
Leonardo Pessoa1-Jun-23 5:01 
GeneralState AI Pin
Gerry Schmitz30-May-23 7:01
mveGerry Schmitz30-May-23 7:01 

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.