33 points

2: Spaces

permalink
report
reply
22 points

1: Tabs

permalink
report
reply
6 points
permalink
report
reply
7 points

Your link doesn’t seem to weigh super heavily on the “tabs for indentation” as a rule, only that tabs should never be for alignment.

Tabs for alignment is definitely a recipe for madness.

Interestingly, tabs for alignment is the correct method for word processors, so it’s backwards for code :/

permalink
report
parent
reply
1 point

True, the link doesn’t go through tabs for indentation, but tabs should already be used for indentation for accessibility

permalink
report
parent
reply
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 ever bother alignment. That is nuts.

permalink
report
parent
reply
3 points

yaml has entered the chat

permalink
report
parent
reply
1 point

I have some serious refactoring to do.

permalink
report
parent
reply
5 points

3: Other

permalink
report
reply
4 points

Automatic one provided by your IDE. In my case pretty printer in sap gui

permalink
report
parent
reply
2 points

UTF8 no-break spaces!

permalink
report
parent
reply

The best indentation should be like any style rule chosen by the project team.

So, I guess it should be defined in the source repository

permalink
report
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