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...
blog.samferree.dev2 min read