6 comments

[ 2.9 ms ] story [ 30.0 ms ] thread
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.
I write all my Python code in this style.
You should try Zero-Line-Breaks Style. A 64 kilobytes long one-liner would provide appropriate insight into this idea.

  end of sentence
  </a>.
That's amazing. Every browser I use still has an incompetently maintained parser, even thirteen years after http://www.w3.org/TR/REC-html40-971218/appendix/notes.html#h... was first written to explain this detail of SGML in smaller words.

And 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.

This can't be serious! Seriously, anyone who writes code without proper indentation should consider another job in a different field.
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...