It makes me sad we didn't collectively agree on using tabs for all indentation so people can set their preferred indentation size in their editors.
That said, consistency trumps philosophy.
I don't understand even a little how spaces won.
Feels like a psyop, honestly
IMO it's because open source developers commonly use editors that have poor support for tabs, like Vim and Emacs.
Tabs are definitely better but to use them properly you do really need a "visualise whitespace" option enables. Emacs does it like this and Vim like this. Both awful.
Possibly also a bit because tabs for indentation, alignment for spaces is just too complex for most developers. Hell most can barely even get spaces right. I work in a couple of languages without an autoformatter (e.g. SystemVerilog) and some of our files are a joke. A mixture of 2 and 3 space indentations, sometimes on the same line!
It was because people wanted alignment on top of indentation, which would mean, you would be using tabs+spaces, making it ugly.
I am in no-alignment btw
That said, consistency trumps philosophy.
If only we had collectively agreed on a number of spaces! Sadly it seems split fairly evenly between 2 and 4 so we don't even get consistency.
It makes me sad we didn't collectively agree on using tabs for all indentation so people can set their preferred indentation size in their editors.
That said, consistency trumps philosophy.
I don't understand even a little how spaces won.
Feels like a psyop, honestly
IMO it's because open source developers commonly use editors that have poor support for tabs, like Vim and Emacs.
Tabs are definitely better but to use them properly you do really need a "visualise whitespace" option enables. Emacs does it like this and Vim like this. Both awful.
Possibly also a bit because tabs for indentation, alignment for spaces is just too complex for most developers. Hell most can barely even get spaces right. I work in a couple of languages without an autoformatter (e.g. SystemVerilog) and some of our files are a joke. A mixture of 2 and 3 space indentations, sometimes on the same line!
It was because people wanted alignment on top of indentation, which would mean, you would be using tabs+spaces, making it ugly.
I am in no-alignment btw
If only we had collectively agreed on a number of spaces! Sadly it seems split fairly evenly between 2 and 4 so we don't even get consistency.
Consistency within a project.