this post was submitted on 10 Feb 2024
596 points (96.9% liked)

196

16985 readers
1423 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (2 children)

Tabs has no place in code, just recently I started a project with four space indentation, that quickly got changed to two.

[–] [email protected] 10 points 1 year ago (1 children)

Change your tab width, but tabs are literally made for indentation.

[–] [email protected] 3 points 1 year ago

The reason I loathe tabs is that over time a codebase with tabs becomes mixed tabs and spaces and unless your editor shows tabs you can't see them.

In the end you have to choose either spaces or tabs, and enforce it with some lint tool.

[–] [email protected] 9 points 1 year ago (1 children)

I love compromises, so I use 3 spaces for indentation.

[–] [email protected] 4 points 1 year ago (1 children)

Some people just want to see the world burn 😁

[–] [email protected] 3 points 1 year ago

It's warm and bright when everything burns.