4 ms·
I've never been served wrong by constantly asking these questions: 1. How hard is this code to change? 2. How hard is this code to delete? 3. How hard is thi
by joevandyk 9y ago
I've never been served wrong by constantly asking these questions:
1. How hard is this code to change?
2. How hard is this code to delete?
3. How hard is this code to test?
Code that is hard to change, delete, and test is bad. Code that is easy to change, easy to delete, and easy to test is good.
(Note: you can't easily change code if you can't understand it)
Long vs short functions don't really matter. Objects vs functions don't really matter. It doesn't matter if you use or don't use a ton of abstractions if they are easy to delete and change.