Write code that is easy to delete, not easy to extend
Good code is easy to delete.
Source: Write code that is easy to delete, not easy to extend – programming is terrible
Related: Write code that’s easy to delete, and easy to debug too – programming is terrible
I haven’t fully digested this, but it seems to be good advice.