Hacker News new | ask | show | jobs
by nkingsy 1761 days ago
So much of this best practice discussion seems reactionary to me.

Very few rules are broadly applicable to me as a software engineer on an existing code base:

- achieve the goal with the simplest set of changes possible.

- make your code look like the code around it.

- information is liability. The less of it moves around, the simpler and safer the code. “DRY” is only useful because it encourages thinking about apis.

My only real rule that flows from this is to make sure a code base sets out good standards before making anyone else work on it.