Comment on Tabs are objectively better than spaces - gomakethings.com

potterman28wxcv@beehaw.org ⁨1⁩ ⁨year⁩ ago

Interesting take. I prefer spaces because each piece of code that I see with tabs has an implicit tabsize you really need to have if you don’t want the code to look ugly - especially if the person has been mixing tabs and spaces - and they usually do. Sometimes unadvertently.

When you remove all tabs at least everyone is on the same page.

To the actual problem raised by the article:

I have ADHD. Two spaces per indent makes it damn near impossible for me to scan code. My brain gets too distracted by the visual noise. Someone who’s visually impaired might bump their font size up really large, and need to scale up or down the amount of space per indent. Someone might just prefer it because…

I wonder if it could be possible to make a code editor that would allow for adjusting the “indent number of spaces you see”. Code editors are able to figure out what are indents and what are not, so in theory it should be possible

source
Sort:hotnewtop