2 ms·
> Because it's apparently too hard to work out how to invert logic. This is almost never the case. Please don't assume people don't know what they're doing, es
by manigandham 8y ago
> Because it's apparently too hard to work out how to invert logic.
This is almost never the case. Please don't assume people don't know what they're doing, especially to such an extent. I would actually recommend attributing expertise and wisdom to their decisions until proven otherwise.
This particular construct is not a lack of understanding but often used to improve readability, transition code that may be in that block in the past or future, denote the normal vs exception branch, and several other scenarios. Did you ever ask why this person wrote it this way?