this post was submitted on 05 Sep 2023
149 points (79.2% liked)

Programming

21961 readers
224 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 !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wgs@lemmy.sdf.org 31 points 2 years ago (33 children)

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

[–] GuybrushThreepwo0d@programming.dev 8 points 2 years ago (1 children)

I used to think this way, at least when writing C++. But it's objectively harder to do and convince other people to follow, especially if they can't be bothered to change their environment to display tabs and spaces differently. It's a losing battle so now I just do spaces when working with other people

[–] KIM_JONG@lemmy.world -2 points 2 years ago (1 children)

Always do spaces, because you can never trust how someone else has their tab configured.

How is this even a debate anymore. I thought we all agreed on this years ago.

[–] Pyroglyph@lemmy.world 3 points 2 years ago

you can never trust how someone else has their tab configured

Why on earth would I care how someone else has their editor configured? It's none of my business, and none of yours either.

load more comments (31 replies)