DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

What's the deal with indentation sensitivity hate?

I saw four most common languages with indentation-based, as well as sensitive (how many spaces vs tab).

  • Markdown
  • Python
  • Pug (a template engine)
  • YAML

So, why do you dislike them, and how do you deal with it?

Top comments (3)

Collapse
 
yaythomas profile image
yaythomas

I think getting too angry about spaces vs tabs vs indention vs where to put your brackets is for people who don't spend enough time solving actual problems with code. The syntax is the least of your worries!

Collapse
 
lexlohr profile image
Alex Lohr

IMO, indentation is not information, but redundancy to increase legibility. So I think abusing indentation for anything else but to indent information is plain wrong - which makes the use in Markdown and Pug ok, because here it is used exactly for that.

Also, if you want to force a coding style on developers, use a formatter instead of throwing errors.

Collapse
 
delta456 profile image
Swastik Baranwal

I tend to use code formatters to deal with identation.