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

That could be argued for years, ill leave your preference up to you :) I’m personally in the spaces for indent camp, but realistically, as long as you match the existing codebase, it doesn’t matter.

permalink
report
parent
reply
2 points

I don’t think there’s any new arguments anymore, it was all settled long ago.

  • Tabs were always useful for accessibility and DX.
  • Spaces were useful 2-3 decades ago when not all editors could handle tabs yet.

But now all editors handle tabs.

permalink
report
parent
reply
2 points

And yet, the debate still rages :D I am not sold by the tab arguments, and your probably not gonna be sold on the spaces arguments. As long as we don’t fuck with each-others codebase, it really doesn’t matter too much.

The accessibility argument is interesting, but setting your code style to use a sufficiently large amount of spaces, and avoiding horrifically nested code seems a valid solution there as well (XML would be a strong case for tabs, other languages less so). Maybe when my eyes start to age I’ll care more about adjustable tabs :/

permalink
report
parent
reply
2 points

There isn’t a debate anymore, the points have already been stated.

The only reason people still talk about it is that there’s always developers learning the points for the first time.

Don’t worry about your own eyes in some vague future, worry about other’s eyes now.

permalink
report
parent
reply

Programming Polls

!polls@programming.dev

Create post

Welcome to the programming polls community! This is a place where you can run polls related to programming

For questions not related to being a poll theres communities such as !no_stupid_questions@programming.dev instead and for trivia theres !trivia@programming.dev

As lemmy doesnt have a built in poll system if you want to run a multiple choice poll you can just make each option its own reply and people can vote by upvoting

Community stats

  • 1

    Monthly active users

  • 8

    Posts

  • 61

    Comments

Community moderators