Mark your safe zone!

Recently I was wondering which keyword in java is the most used by programmers. Is it final, return, class, or maybe something else? Unluckily I haven’t found any broader statistic on the internet and even on GitHub, I didn’t find that option. I was so curious, that I wrote a simple file crawler and run […]

Never break the chain!

Each day, when we are working with code we are creating new objects. There are many ways of creation and the most used is a class constructor. But, do we initialize our object properly in the best possible way?

Stretch the old rules please.

In my programming career, I heard plenty discussions about single vs. multiple return statements in methods. In the past, I was sure that single exit was the only valid way, which led me to one return per method. Now, I still think that a single exit point is good, but the meaning of it is […]

Do we care about our privacy?

We all are using private methods in our classes. There are two different ways to use them – one is good and valid while the second one is a hint that something can be wrong with our design.