Weekly newsletter about leadership, technology, books and anything else we felt compelled to share with others
Year 4 - Edition 11
A Fistful of Links is a weekly newsletter about leadership, technology, books, and anything else we felt compelled to share with others, brought to you by Og Maciel and Mirek Długosz.
Why Most Unit Testing is Waste
By James O Coplien
Object orientation turned the design world upside-down. First, the design units changed from things-that-computed to small heterogeneous composites called objects that combine several programming artefacts, including functions and data, together inside one wrapper. (…) That made it impossible to reason about run-time behaviour of code by inspection alone. You had to run the program to get the faintest idea of what was going on. So, testing became in again. Original PDF version of article
When I was a less experienced developer, I believed in following these “best practices” to the letter, as I thought that would make my code better. I didn’t particularly enjoy writing unit tests because of all the ceremony involved with abstractions and mocking, but it was the recommended approach after all, so who am I to know better. It was only later, as I’ve experimented more and built more projects, that I started to realize that there are much better ways to approach testing and that focusing on unit tests is, in most cases, a complete waste of time.
Some testers decide that since the bug is hard to reproduce, they should go on and test something else. Other testers decide to devote every moment to finding the cause of the odd behavior, to the exclusion of all other testing. Which is the correct behavior? The answer is: “It depends”. In this post, I’ll list three reasons why you might want to hunt for the elusive bug, and three reasons why you might want to put off the hunt for later.
It’s been almost 3 years since I used the Clean Architecture in production for the first time. (…) But we’re now in 2021 and the world has gone forward. Let’s see how Python’s advancement and a variety of new cool libraries make the implementation of the Clean Architecture easier today.