Hacker News new | ask | show | jobs
by gaazoh 967 days ago
One of my pet peeves is when I go to the trouble of flattening indents, usually for some good reason like improving clarity or readability and some busybody comes along and indents it all for no good reason other than pandering to their own personal aesthetic.

Honestly, I use spaces because virtually all tooling and coding conventions that exist prefer spaces over tabs, but I don't understand how it came that spaces won over tabs in the programming world. So much energy wasted on counting spaces in text documents, it's absurd.

2 comments

I press tab in emacs and it inserts or removes the right amount of spaces to indent the line. I press newline and it creates a new line with the correct space based indentation.

If I'm in Python I can press tab multiple times to cycle through indentation levels or do it manually with space and the deletion keys.

Please engage with the substance of my comment rather than just further iterating the argument that’s in your head. It is equally frustrating whether tabs or spaces.

Who on earth is counting spaces?