3 ms·
Why not set your editor to not indent, and use git diff -w to ignore whitespace differences? Change your habits rather than try to change the world. Most progr
by gregjor 7y ago
Why not set your editor to not indent, and use git diff -w to ignore whitespace differences? Change your habits rather than try to change the world.
Most programmers would find unindented code hard to read.
- keeyan 7y agoWell that's the point really. Nobody would be looking at unindented code. The point of my post is that the only reason for indentation is visualisation purposes. It's not there to be read by the machine (except for in Python) and is not a description of what is being done. Just as we leave other visualisation to the editor such as colouring variables, all I'm asking is why not follow the same approach when it comes to indentation?