I can kinda see their point for HTML and CSS. At least I could understand how someone would feel that way. For code though, this is a terrible idea. The point of indentation isn't just to show where a block begins and ends. It's to show depth and overall structure. Without indentation, seeing which "if" an "else" or "else if" goes with is a serious pain.
They offer two extremes: use a huge identation or none at all.
Why not go for the intermediate solution? 2 spaces of indentation. IMO, that's most easy on the eyes, at least for things like HTML. You can still see the levels, but it doesn't walk off your screen.
With C, Python, etc you can just as well use 4 or more spaces, if your indentation goes to deep you should consider moving the inner code to a function...
6 comments
[ 2.9 ms ] story [ 30.0 ms ] threadAnd yeah, one tag per line with no indentation has always been a common style in SGML, and doing that cleanly is why newlines are specified that way.
Why not go for the intermediate solution? 2 spaces of indentation. IMO, that's most easy on the eyes, at least for things like HTML. You can still see the levels, but it doesn't walk off your screen.
With C, Python, etc you can just as well use 4 or more spaces, if your indentation goes to deep you should consider moving the inner code to a function...