|
|
|
|
|
by romdev
2342 days ago
|
|
Voraciously eliminating unnecessary whitespace, especially vertical whitespace, was a trick I learned early. Most monitors are wide, not tall. When you can see a whole function without scrolling it's much easier to understand. I'll collapse 'if' statements to a single line in most cases to make it readable left-right instead of up-down. 1TB bracketing is my default unless style guidelines prohibit it. End-of-line comments make it easier to associate functionality with comments and keep code tidy. |
|
After some time I've noticed that I read the code much easier and understand flow when the indentation is similar to python or go.
Also, I keep my editor on a vertical half of the screen.