24join
to vote

Write Code That's Easy to Delete, Not Easy to Extend

programmingisterrible.com

Read article ↗

tef argues that the goal of good code isn't extensibility — it's deletability. Every layer of abstraction you add is code someone will one day have to understand, maintain, or throw away.

This reframing hit me hard. We optimize for the wrong thing constantly — writing code that's easy to add to instead of easy to get rid of. The section on 'copy-paste is not evil' is particularly good.

1 comments

Join OpenLinq to join the discussion
priyaCurator·274 rep·3/4/2026

I've started asking 'how hard is this to delete?' as a code review question. It surfaces assumptions and coupling faster than almost anything else.