3 ms·
From the linked shell style guide: > Indentation is two spaces. Whatever you do, don’t use tabs. The recent obsession with 2 space indents is boggling to me.
by gpanders 6y ago
From the linked shell style guide:
> Indentation is two spaces. Whatever you do, don’t use tabs.
The recent obsession with 2 space indents is boggling to me. I find it much more difficult to read (especially in long blocks of code with lots of indentation switches) and I'm not even visually impaired.
They also apparently really don't like tabs, which I find interesting. Personally, I was converted to the tabs camp after learning how much better tabs are for accessibility. I'm surprised that Google of all places doesn't take that more seriously.
- sgeisenh 6y agoObligatory disclaimer: comments are exclusively my own and do not reflect the views of my employer. A lot of these rules exist for the purpose of having a consistent rule. With modern tooling, there is virtually no difference between tabs and spaces. What is important is to have some rule to avoid the constant bikeshedding that would occur if there wasn't one.
- ahefner 6y agoIs 2 spaces really a recent obsession? This is just what emacs (and ancient emacs-likes) have always done, and how all the Lisp code (excluding that by newbies and in fringe dialects) has been formatted. CL best practice, formatting wise, is 95% just to let emacs do what it does by default.