3 ms·
That's the reason I use tabs for indentation? 4 spaces will render as 4 spaces, 2 as 2. 1 tab will render to whatever the next programmer prefers, it's only co
by SippinLean 9y ago
That's the reason I use tabs for indentation? 4 spaces will render as 4 spaces, 2 as 2.
1 tab will render to whatever the next programmer prefers, it's only courteous.
- astrodust 9y agoIt's courteous except to those that don't like tabs, so you really can't win. Many languages have a coding style preference. Go is super opinionated, Python in the middle, with C being as conflicted as it gets. Whatever you use, follow the style the language or team is a proponent of.
- ioquatix 9y agoIf you don't like tabs, converting them to spaces is trivial. You could even add git hooks to do it automatically.
- astrodust 9y agoIf it's your own personal code-base, go nuts. If you're working on a team don't be the one who does this and wrecks every file you touch.
- d0lph 9y agoPicking one or the other will be slightly discourteous to the other side, in this case this is an advantage only tabs hold.