Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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.


As a savage, I use 4 tabs now.


I hit space 4 times...


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: