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…