3 ms·
> "Many of us" prefer spaces for that reason and that's why it has become the de facto standard Has it? I wasn't informed. I know it has in the Python communit
by scrollaway 10y ago
> "Many of us" prefer spaces for that reason and that's why it has become the de facto standard
Has it? I wasn't informed. I know it has in the Python community, because of pep8 mainly, but a lot of communities have settled on tabs (Lua for example, and for a long time PHP until recently).
I'll paste here what I replied to someone off-thread, regarding "why" anything ever becomes a de facto standard.
> I would bet quite a bit that personal indent preferences are driven by
whatever the default is on the editor of choice of the person in
question. I would equally bet that you can correlate the tab defaults
on editors/IDEs widely used in specific communities (Visual Studio for
Windows C-family stacks, PyCharm for python, Eclipse and its little
family for java, etc) and the general preference of that community.
Chicken and egg problem. Spaces aren't standard because they're preferred; they're preferred because they're standardized by editor defaults. Developers that don't have a particular preference grow into those defaults.
- yAnonymous 10y agoIt's more like new editors ship with spaces as default, because most style guides recommend it. Google, Microsoft, Apache and NASA for C-family languages, Crockford and almost every other web-related style guide I've ever seen recommend the use of spaces. Apple is a notable exception. It seems you're the vocal minority: https://ukupat.github.io/tabs-or-spaces/ https://ukupat.github.io/tabs-or-spaces/