When to invert your if checks
It's not uncommon to see code like this: if (someCondition is true) { // Do a thing // Do more things // do a final thing return result; } else { return new Failure(); } Now most people will be quick to spot that we don't need the else, si...
May 31, 20242 min read67