10 Tips to Writing Good Unit Tests

Since we already got started on unit testing in the previous post, I thought we can stick with the topic and lay out some rules for writing good, maintainable unit tests. The choice was pretty arbitrary

Continue reading

Unit Testing: The Myth of Complete Isolation

Time and time again, when people talk about unit testing, they mention the fragility of unit tests as some inherent disadvantage of the technique. I disagree. I believe this is just bad unit testing and

Continue reading

The Strange Relationship between Duplication and Coupling

This short post hopefully contains no new knowledge for you. Its mere intention is to make you contemplate an interesting relationship between coupling and duplication for a while. Duplication is Bad! As

Continue reading

Creating a Groovy DSL for Structurizr

In the previous post, we took a quick look into generating documentation with Structurizr. I really enjoyed playing with the tool, but I wasn’t aesthetically pleased with the code necessary to create

Continue reading

Coding the Documentation with Structurizr

Regardless of whether we like it or not, software documentation is needed, useful, and often even required. I don’t know about you, but I hate going to the company’s Wiki and updating documentation

Continue reading

The Soon Hated Object Locator

As more frequent readers of my blog might know, amongst my most recent interests were concepts like DCI Architecture, Domain-Driven Design, and the Service Locator pattern. I’ve been doing a lot

Continue reading

The Hated Service Locator (Anti-)Pattern

I was recently doing some reading about Spring and Dependency Injection in general when I came across a particularly harsh comment about the Service Locator pattern. The guy was so convinced that he’s

Continue reading

Gumption Traps: Bad Code

In the previous post, we briefly touched on the topic of gumption traps. Since the topic seemed very interesting to me and, at the same time, important to many software developers, I decided to elaborate

Continue reading

Zen and the Art of Software Maintenance

On April 24, 2017, author Robert M. Pirsig died. He wrote Zen and the Art of Motorcycle Maintenance – one of the best books I have ever read. In this post, we’ll have a quick look at how his

Continue reading

Method Length and Extract Till You Drop

As a typical nerd (and a DZone Zone Leader), I tend to read a lot of blog posts and comments about programming. One thing that keeps amazing me how long people’s functions tend to be and how many

Continue reading
1 2 3 6