Kent C. Dodds 4/7/2019

AHA Testing 💡

Read Original

This article discusses the AHA (Avoid Hasty Abstraction) programming principle as it applies to writing tests. It argues against the extremes of ANA (Absolutely No Abstraction) and overly DRY (Don't Repeat Yourself) code, using a detailed example of an ExpressJS route handler test to illustrate the problems with minimal abstraction and the importance of finding a middle ground for test maintainability.

AHA Testing 💡

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet