You are viewing a single thread.
View all comments View context
9 points

Tabs > spaces

Tabs does allow you to set the spacing you need.
Spaces are like hardcoding passwords

permalink
report
parent
reply
4 points

Yeah, tabs are larger spaces, what’s your point?

/s

You may be right, but I still have an unreasonable hate for tabs in code

permalink
report
parent
reply
12 points

And I for spaces.

Let’s hate both and be mad at the client?

permalink
report
parent
reply
4 points

I like the way you think.

permalink
report
parent
reply
5 points

Tabs for indenting and spaces for aligning. There. Everybody wins and loses.

This way the code always looks aligned and if you prefer 4 spaces for a tab instead of 2 or 3 or 8 you can just set it in your IDE.

Crisis averted!

permalink
report
parent
reply
1 point

Both tabs and spaces are stupid.

It’s ridiculous that in 2024, code formatting is still embedded in the source instead of being a style you apply.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.4K

    Monthly active users

  • 887

    Posts

  • 9K

    Comments

Community moderators