Tabs versus spaces

Spaces, but this is done automatically by my IDE that converts tabs to spaces. People don't actually mash the spacebar do they :wtf:
This. So many colleagues of mine have thought they were part of the Tabs group, because they pressed the Tab button - without realising most IDE's convert it to 4 spaces...
 
That SARS IT manager used to use spaces..

Nuff said, use tabs if you don't want to be her.
 
I use spaces to ensure readability for code reviews.

Same goes with max width column to ensure the reader sees all of the code without having to scroll horizontally. I also focus on reducing cognitive complexity.

For my environment, code reliability is crucial.
 
Tabs.. but most editors such as VSCode got decent linting plugins for whatever language these days so my code looks clean by itself.
 
use whatever you want, because there are pre-commit hooks that don't give a crap about your opinions
 
Spaces for alignment (non-leading margin gaps),
Tabs for indenting (margin adjacent gaps).

Don't get it wrong!!!
 
Spaces for alignment (non-leading margin gaps),
Tabs for indenting (margin adjacent gaps).

Don't get it wrong!!!

Using spaces and tabs in the same project is just the worst. Otherwise either is OK, but spaces are better.
 
i-want-to-use-spaces-o-instead-of-tabs-company-28407907.png
 
Top
Sign up to the MyBroadband newsletter
X