AHA Programming →

As a follow-up to my post, “Incidental Duplication”, I thought I’d share this great article by Kent Dodds with you.

AHA (pronounced “Aha!” like you just made a discovery) is an acronym I got from Cher Scarlett which stands for

Avoid Hasty Abstractions

The way I think of this principle is beautifully described by Sandi Metz who wrote:

prefer duplication over the wrong abstraction

This is such a solid golden nugget of wisdom that I want you to read it again, then read Sandi’s blog post on the subject: The Wrong Abstraction. It’s fantastic.

Kent also has a really great presentation, which is embedded in the post if you follow the link.

© 2024 TJ Draper