We aim to please the customer at short notice and always overestimate our capacity to comprehend a system as it gets more complex. That’s a recipe for technical debt. The antidote to this psychological shortfall is more team discipline in writing clean code with good test coverage. Static analysis tools with strict validation settings should be an integral part of your continous integration process.
The prolific Dutch author Martin Bril who died at age fifty famously said that we miss out on more than we could ever experience. Je mist meer dan je meemaakt; it has a better cadence in the original. Our lives relentlessly chug towards the finish line while the options to fill this finite time are practically infinite. Bril wrote as if his life depended on it and only death could silence him. His curiosity knew no limits and he would not have run out of ideas had he lived another thirty years and penned another ten thousand columns. I couldn’t have read them all. No one can digest the daily output of new books, music and movies, not even if you limit yourself to the pick of the bunch. Even What’s New on Netflix can be a day job. Continue reading “Missing out more than you can manage”
In my latest post for the codecentric blog I write about the advanced features of mocking frameworks. Mocks are essential for good unit tests, but if you find yourself struggling with mocking static methods or constructor calls it is probably your code under test that’s the problem.
My posts on the codecentric blog
This is the first post of my new blog, but hardly my first piece of writing for the web. Since joining codecentric Netherlands in 2015 I have been writing for their international and much-read blog and I definitely intend to post regularly.
You can find a current listing of my articles here.
- Two articles about mutation testing: Watching the watchmen and don’t go on a killing spree.
- Kotlin’s killer features. Kotlin is a new language from Jetbrains that has everything Java 9 should have been.
- Caching de luxe with Spring and Guava. Improve your application performance by caching repetitive and unnecessary data retrieval calls. A hands-on tutorial.
- Web frameworks and how to survive them. I have said goodbye to Google Web Toolkit. With the short shelf-life of web frameworks, is it worth investing your precious time and effort?
- Integration testing strategies or SpringBoot (micro)services. A tutorial with sample code to set up a test environment of multiple (SpringBoot) services with the cucumber test framework. Part one and two.
- Crud operations on Spring REST resources with Kotlin. Making optimal use of Kotlin’s data classes, null-safe types and optional parameters you can make REST APIs much more intuitive and less error-prone.
- The vicious circle of bad test code and how to break it. Robert Martin wrote about it in Clean Code. Unless we are more disciplined about testing large code bases will always descend into messiness.
- Essentialism for developers. Based on Greg McKeown’s book Essentialism – the disciplined pursuit of less. As developers we should first and foremost develop a keener eye in what to explore and what to ignore.