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 […]
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.
Before Java8 if we wanted to check if something is not null, we had to write crappy null checks. Today we have better alternatives.