back

by pddpro·4y ago·view on hn ↗
No. If the code they write works for them, then they have done their job. People only realized that it was a bad practice once they found that the code was NOT doing their job (i.e. it was difficult to fix/debug when error occurred, it was immensely difficult to update, and it was nigh impossible to make sense of by your cohorts reading your code).

People only do what a) They are taught in the first place (programming classes, reliable blogs etc.), b) Their work environment imposes on them (organizations having coding practices or standards), c) They, through some personal experiences, find out that it makes their job easier down the line, or d) It is the right thing to do.

Expecting everyone to follow (d) is out of the question and in my experience all "good" work happens via (b) i.e. rules, regulations and standards that have been enforced. If some sub-optimal choice minimizes effort while maximizing rewards, then that is not sub-optimal, at least for the individual, even though it clearly could be a sub-optimal for the collective.