3 ms·
Ah so you're "tabs" haha
by justaguy88 6y ago
Ah so you're "tabs" haha
- wolrah 6y ago100% the reason I'm a tab guy. If I'm glancing at some code on my phone, I can have it set to two space tabs to maximize the amount that fits on screen. If I'm on my desktop they're four spaces because my screen is huge and more visibly apparent indentation is valuable. Same editor, same data. If it's a shared codebase and someone else likes 8 space tabs, 6 space, or whatever they want (13 space? no kinkshaming here...). To me that is a significant objective advantage of tabs, where the only advantage spaces seem to offer is that you can align text on multiple levels of indentation.
- PunksATawnyFill 6y agoYep. I have yet to hear a coherent argument against tabs. It’s such a tiresome squabble.
- sam_lowry_ 6y agoDouglas Crockford made an interesting argument in favour of spaces: https://www.youtube.com/watch?v=En8Ubs2k1O8 https://www.youtube.com/watch?v=En8Ubs2k1O8
- ric2b 6y agoVertical alignment of related lines.
- dkersten 6y agoIf you indent with tabs, you can still align with spaces for vertical alignment.
- PunksATawnyFill 6y agoThat’s the whole point of tabs. How is this an argument against them?
- ric2b 6y agoBecause it doesn't work with tabs, someone else will have a different tab-width.