Why would someone do this? Is it really necessary?

  • 14
    Fuck my head hurts after processing dead
  • 6
    *eye twitches*
  • 9
  • 7
    i can't say i don't agree XD
  • 2
    I think its just bad design to begin with. The properties of the package class should be other way around.
  • 5
    Double 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!
  • 4
    @duckWit you mean more immune to cancer code
  • 3
    I'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.
  • 2
    @devTea *Your immunity to cancer code leveled up!*
  • 2
  • 3
    "I don't discourage you not to refuse"
  • 2
    I 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 ;-)
  • 4
  • 6
    Who's there?
  • 2
    Yes it is necessary, otherwise you'd have to do


    That takes two exclamation marks!
  • 2
    Nevermind, I just realized IsNotEmpty() actually needs THREE exclamation marks!!!
  • 1
    You 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.
  • 1
    Don't know what bothers me more... Double negative or curly brackets in new line 🤔
  • 1
    @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.
Your Job Suck?
Get a Better Job
Add Comment