Test Driven Development
Writing tests first is a powerful approach that inherently promotes controllability and observability in your code. By adhering to TDD principles, you can avoid unnecessary complexity, ensuring your code remains small and manageable. While TDD is a proven method for achieving these properties, there are alternative strategies worth exploring.In this clip
From this podcast

Software Engineering Radio - the podcast for professional software developers
SE-Radio Episode 283: Alexander Tarlinder on Developer Testing
Related Questions