Articles in this series
Unleash object behavior beyond data access · TL;DR: Remove or replace getters with behavior-rich methods that perform operations instead of exposing...
Transform manual hard-coded inputs into testable functions · TL;DR: Extract input logic into separate functions to make your code testable, with...
Make Regular Expressions Testable and Understandable · TL;DR: You can break down a complex validation regex into smaller parts to test each part...
Break Hidden Dependencies for Cleaner Code · TL;DR: Replace global variables with dependency injection to improve testability and reduce coupling....
Transform your rigid inheritance into flexible delegations · TL;DR: Replace restrictive inheritance hierarchies with flexible object delegation Problems...
Make your class hierarchy clear and flexible · Make your class hierarchy clear and flexible TL;DR: Extract a common abstract class to mimic real-world...