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

Web MVC with Spring and Business Objects

In the previous posts, we explored the MVC Pattern Language by Trygve Reenskaug and made an attempt to implement MVC in the console, while focusing on MVC’s overarching idea – supporting users’

Continue reading

Poor Man’s Console MVC

After two posts of pure theory about the MVC Pattern Language, I was looking to provide some practical examples. The technical part is easy – everybody already knows how to implement that in various

Continue reading

MVC Pattern Language (Part 2)

Welcome to the second part of my write-up about the MVC Pattern Language! In case you missed the first part, this two-part piece targets popular misconceptions about MVC and tries to shed some “new”

Continue reading

MVC Pattern Language (Part 1)

There seems to be a lot of misconceptions related to MVC. Some consider it a technique for code reuse, others think it’s how you group classes in web applications and some even mistaken it for the

Continue reading

The Garage Architecture

After a couple of weeks break, we’re back to our architecture series. This time we’ll look at something I’ve recently come up with – The Garage Architecture! Background I’ve

Continue reading

Value Objects

Since I’ve already set you up in a DDD mood with the previous post, let’s capitalize on that further. In this post, I’ll try to provide an easy explanation of Value Objects and their

Continue reading