525
you are viewing a single comment's thread
view the rest of the comments
[-] FiskFisk33@startrek.website 9 points 3 weeks ago
[-] meekah@lemmy.world 2 points 3 weeks ago
[-] Appoxo@lemmy.dbzer0.com 8 points 3 weeks ago

Tabs > spaces

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

[-] meekah@lemmy.world 4 points 3 weeks ago

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

[-] Appoxo@lemmy.dbzer0.com 12 points 3 weeks ago

And I for spaces.

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

[-] meekah@lemmy.world 4 points 3 weeks ago

I like the way you think.

[-] fluckx@lemmy.world 5 points 3 weeks ago

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!

[-] PeriodicallyPedantic@lemmy.ca 1 points 3 weeks ago

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.

this post was submitted on 28 Aug 2024
525 points (97.1% liked)

Programmer Humor

32063 readers
1190 users here now

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

Rules:

founded 5 years ago
MODERATORS