2 ms·
> A trivial example, I have very strong preference on using tabs instead of spaces for indentation. However, I don’t force people on my team to also use tabs be
by gwbas1c 2y ago
> A trivial example, I have very strong preference on using tabs instead of spaces for indentation. However, I don’t force people on my team to also use tabs because I realize that’s subjective, and doesn’t affect the product we’re developing. These white spaces are ignored by the compiler after all.
Until people start touching each others' code; then it makes sense to pick one or the other and stick with it.
Ironically, when I implemented .editorconfig at my job, (code formatter and checker in CI), I decided that we were going to pick one or the other. I did a little bit of research, and found the silliest little detail that made me pick one over the other.
I won't say what the detail is; but I will say it's a lot easier when CI enforces one approach, and I can run a simple code reformatter if I accidentally violate the rule. Otherwise, it's super-annoying if, every time I get into a new area of the code, sometimes its tabs, and sometimes its spaces.
- rightbyte 2y ago> then it makes sense to pick one or the other and stick with it. Oh, being stuck with incumbent decisions.
- gwbas1c 2y agoOMG, the difference between tabs and spaces is so tiny that it's generally inconsequential in modern IDEs. In our case, where we use .editorconfig and a reformatter, if someone makes a case that we should change, it's trivial to do so. > Oh, being stuck with incumbent decisions. I think if you feel that way about tabs vs spaces, the problem isn't "incumbent decisions," the problem is your attitude.