this post was submitted on 05 Sep 2023
158 points (79.0% liked)

Programming

17313 readers
233 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



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

Tabs for indent, spaces for alignment. This is the way, I can't believe people are still fighting that ?

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

It's hard to do this consistently (especially in a team) because people might (and statistically in a large enough project, will) use the tab key for alignment since it's faster than pressing space, or just be confused about what whitespace is tabs and what is space. Just using space everywhere is idiot proof and requires no work to micromanage. The only way to use tabs is to not align at all.

[–] jsnfwlr 3 points 1 year ago

And this is why language servers and formatters are so critical.

load more comments (1 replies)
load more comments (27 replies)