My pre-commit routine ✅ August 13, 2024 Check code committed to version control for quality, and the code base will thank you.
Same level of abstraction ⚖️ July 30, 2024 To make something easy to understand, its parts should be at the same level of abstraction.
Why write unit tests? 🧪 April 23, 2024·18 mins A deep dive into unit testing looking to answer why, how much, and what.
Remove temporal dependencies ⏰ April 9, 2024 How to avoid “temporal dependencies” where things must be done in a certain order.
Convert guard clauses to value objects September 21, 2014 How replacing validation functions with types can make your code safer and more expressive.
How to write robust tests July 9, 2012 Concrete tips on how to write robust tests that survive a refactoring.
Moving logic and data together [example] July 4, 2012 An example of how moving logic and data together can result in a better design.
Don’t test private methods July 2, 2012 The need to test a private method often indicates a new class waiting to get out.
Extract the logic (what’s left is glue) June 18, 2012 To make code easier to understand and test, try to move complex logic away from code with many dependencies.
How to unit test code calling a static method June 9, 2012 Don’t try to test code which calls static methods, try to get rid of the static methods.