4 ms·
Tabs. The argument that spaces are better because they make the code appear the same to everyone is irrational. Some prefer 2 space indentation, some 4, some 8
by marshallbananas 13y ago
Tabs.
The argument that spaces are better because they make the code appear the same to everyone is irrational. Some prefer 2 space indentation, some 4, some 8. You can set that to your own preference with tabs. Not with spaces.
Also, using spaces feels counterintuitive. It hurts my brain when I see that there are four characters expressing what could be done with one.
- notacoward 13y agoThe problem is that "setting that to your own preference" always leads to code that fits on your screen nicely but wraps on someone else's, or that's aligned for you but not for others, and so on. In any multi-person project it's just a latent source of irritation and conflict. Why bother, when any modern editor can DTRT by letting you add or remove indentation with a single key even though it's multiple spaces?