4 ms·
> 4. Code should be easy to delete. The distinction between "easy to delete" and "easy to replace" is subtle but important. The latter can lead you to write in
by hliyan 6y ago
> 4. Code should be easy to delete.
The distinction between "easy to delete" and "easy to replace" is subtle but important. The latter can lead you to write interfaces, proxies and factories. The former, to stateles and pure functions.
Also:
> 25. A good design is one in which you can change your mind without changing too much code.
On a tangential note, here's my take on the subject of engineering principles: https://hliyan.medium.com/elements-of-a-software-engineering-philosophy-ae495b3b46fd https://hliyan.medium.com/elements-of-a-software-engineering...