Video
The Wet Codebase
Dan Abramov · Deconstruct 2019 Free Intermediate
Premature abstraction is a sneaky form of debt that fast moving teams create while trying to be clean. Abramov tells the story of a DRY abstraction that slowly grew special cases until it strangled the codebase, and argues a bad abstraction is worse than a little duplication. It teaches you when not to tidy, which matters as much as when to.
- A bad abstraction hurts more than some copy pasted code
- Wait for a clear pattern before you abstract
- Be willing to inline and delete an abstraction that went wrong