top | item 32058222

(no title)

qez | 3 years ago

> anymore than there is a clear winner between tabs and spaces.

But there is a clear winner here. Tabs won, almost all code files use spaces. Of course everyone uses the tab key on their keyboard, and the IDE makes spaces for you; no one is going to manually press space 4 times.

discuss

order

bornfreddy|3 years ago

There is no winner, both tabs snd spaces are widely used. However with proliferation of better tools the question thankfully became mostly irrelevant. I don't care if it is spaces or tabs, as long as it is consistent across codebase (which CI enforces with autoformatters and linters) and as long as my editor (which obeys project's editorconfig) uses the same convention.

tingletech|3 years ago

I hit space 4 times...

jjoonathan|3 years ago

...which is clear evidence that hitting space 4 times is the wrong thing to do :P