3 ms·
> Write code that can be replaced. Writing code is easy, but editing code is hard. Make inputs and outputs extremely clear; everything between is disposable det
by dclowd9901 3y ago
> Write code that can be replaced. Writing code is easy, but editing code is hard. Make inputs and outputs extremely clear; everything between is disposable detail. We intuitively call irreplacable code “complicated” or “spaghetti”.
I like this rule especially for test code. There’s already a level of abstraction going on with test code which makes it more difficult to reason about. Don’t make it clever.