Hacker News new | ask | show | jobs
by ringmaster 4912 days ago
Properly indented code is like properly layered design graphics. It should be a habit such that you're unconsciously doing it all the time, regardless of whether you're otherwise doing things "right" or taking shortcuts to be "good enough for now".
1 comments

Of course. There are differing levels of perfection, however. For example, something I despise is when, somehow, spaces are left at the end of a line by hasty colleagues, e.g:

    "someFunction();    "
Their existence doesn't damage maintainability, performance or code readability - yet to me it feels wrong and I can't stand it.
Of course it damages maintainability when moving the cursor around becomes erratic. Your colleagues should probably configure their editors properly to remove trailing whitespace.
Also perhaps they should stop copy/pasting code from websites.