Javarevisited
Published in

Javarevisited

Avoid Explicit Null Checks

One of the more frustrating things about reading bad written code is that you have to mentally discard a lot of code just to find what is relevant. Who hasn’t at least once in his career at least found a huge large method full of duplications, boilerplate that does more than one thing? I could talk about code smells for the whole day but today I just want to focus on one code smell that is very predominant and is actually simpler to avoid…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store