Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
KAS893696yI think its just bad design to begin with. The properties of the package class should be other way around.
-
duckWit56166yDouble negations to negate the negations.
Wow, this person gets off on negations.
On the bright side, you get to practice your sight reading of propositional logic! -
potata14776yI've seen this few times. It might not be a bad design, as sometimes you do need those kind of checks but this is for sure - the blindest early return design follow.
-
mee48951046yI bet the isNot part is done by one dev who made the packages where it was easier or more logical for him to negate the word and not the code. This lead to another dev using it with the negation.
But I think this is not THIS bad devrant showed me way ... way way worse things ;-) -
beleg31406yYou can't say it's bad design when you don't know the design goals. This example could just be one use case that lost the trade off with many use cases you don't know about.
-
Don't know what bothers me more... Double negative or curly brackets in new line 🤔
-
KAS893696y@makzimalist curly braces in new line is Microsoft's standard. This is C# code. So I think that is fine. But double negatives? NO WAY.
Why would someone do this? Is it really necessary?
joke/meme