Indented Code Is Hard to Read
I must be the only person on the planet that has a hard time reading indented code. If you put "indented code is not easier to read" into Google, there isn't even one result. For me it's like trying to read a whole page of centered text.
Or trying to read code that is following the jagged lines of a polygraph.
I get lost jerking my eyes back and forth all over the page trying to read indented code. The following excerpt from the page below explains what I'm talking about:
https://uxmovement.com/content/why-you-should-never-center-align-paragraph-text/
QuoteLeft aligned text is easier to read than centered text for paragraphs. This is because when you center your text, the starting place of each line changes. This forces your users to work harder to find where each line begins to continue reading. Without a straight left edge, there is no consistent place where users can move their eyes to when they complete each line.
Whether it's code or paragraphs, I can read faster and it doesn't hurt my eyes as much if it's in a straight line down the left side and not spread out all over the place in a jagged fashion.
- 1
2 Comments
Recommended Comments