home cv blog articles

Indentation

tags reviews poetry

In programming, indentation is a very useful way to nest one statement within another, making for easy reading of code.
Yet this area is quite controversial, as there are a smorgasbord of ways to indent. One can use tabs or spaces (at least two spaces, please). It is possible to use both, but then you would be crucified by your coworkers.
Nick Gravgaard has written about this issue and come up with a solution – elastic tabstops.
I would like to join the fray, with an alternative solution. Consider typing “5 " and 5 spaces being linted (or 10, if a tab is set to 2 spaces).