5 ms·
I always heard "Tabs for indenting, spaces for aligning."
by nezza-_- 12y ago
I always heard "Tabs for indenting, spaces for aligning."
- emsy 12y agoMix tabs and spaces in code and you're in for a fun time :D
- jpgvm 12y agoThese days just use expand tab, in an age of online code review tools etc it's just better not to have to configure every system to interpret tabs to your given number of spaces - just write the damn spaces into the file.
- deleted 12y ago[deleted]
- Crito 12y ago> "it's just better not to have to configure every system to interpret tabs to your given number of spaces" The entire point of "tabs to indent; spaces to align" is that you don't need to make sure everyone displays tabs the same way. If we are using that scheme and I have mine set to 4 spaces but you have yours set to 8, everything is fine. There is no problem there.
- jordigh 12y agoYeah, but since every time someone new comes along who doesn't understand what this means (witness the replies you're getting)... no tabs. It's just easier this way.
- TorKlingberg 12y agoThat works but takes a lot of discipline. More than any team I ever worked with had.
- Crito 12y agoIn my experience, the difficult part is getting people to understand it.