Category Archives for Clean Code

The Stepdown Rule

It has recently occurred to me that some people are ordering the functions in a class randomly, mostly based on gut feelings. It’s a good indicator that we should rehash the old, simple but very

Continue reading

Entity Objects Power Ranking

There seems to be an ever-ongoing discussion about how powerful should an entity object be. That’s indeed a very valid discussion as the choice that we make (often unconsciously) will have a huge

Continue reading

Optional Method Parameters

I have recently come across an interesting problem: should you use Optional as a method parameter type? The majority of sources says that you shouldn’t, but let’s weigh the arguments before

Continue reading

Cleaner Tests with Spock

One obvious fact about tests that is often overlooked is: tests are code. This implies that the tests, as any kind of code, have to be read, understood and maintained. We’re smart, educated guys,

Continue reading

Keep Your Code Consistent

There’s a bunch of things in programming that have seemingly little to no meaning. Some of those things, despite their “seemingly” little meaning cause a lot of pointless discussions

Continue reading

10 Tips To Handle Null Effectively

When I started programming in Java, I considered the null value my enemy and I dreaded NullPointerExceptions that happened fairly often to me. Over time I learned working with it and nowadays I can consider

Continue reading

Perfecting Your SOLID Meal With DIP

The codebase has improved so much lately, that you’re famous now! Each day you come to WooMinus, you’re greeted with a different title: The One Dev To Satisfy Them All, The Grandparent of New

Continue reading

What Naming And Poetry Have In Common?

From time to time, I come across an article or comment that neglects the need for naming things, especially if that would imply creating a function that consists of a single line of code. Another, probably

Continue reading

Hard Rocking With Interface Segregation Principle

Our systems seem safe when it comes to different requirement sources and adding new features. Privately, you’re safer than ever, as King Benedictus promised to protect you. Your life is so beautiful

Continue reading

Find Inner Peace With Liskov Substitution Principle

We’re successfully handling divergent requirements by conforming to SRP. We’ve made our systems extensible by unleashing the power of OCP. Everything at WooMinus seems calm. But your life

Continue reading