The Lemmy Club
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 months ago

CompareBooleans

sh.itjust.works

message-square
96
link
fedilink
506

CompareBooleans

sh.itjust.works

Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 months ago
message-square
96
link
fedilink
  • just_an_average_joe@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    107
    ·
    8 months ago

    Wait areBooleanEqual returns false when they are equal?

    • breadsmasher@lemmy.world
      link
      fedilink
      English
      arrow-up
      80
      arrow-down
      1
      ·
      8 months ago

      yesn’t

      • Log in | Sign up@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        This actually made me laugh, thank you.

    • not_woody_shaw@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      8 months ago

      That’s not even the worst part. What the fuck does a function named Compare_anything do? Does it return anything? It sounds like nothing but a side effect.

      • idunnololz@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        8 months ago

        Usually comparison functions are supposed to return an integer and are usually useful for sorting. However this one returns a bool so it’s both useless and terribly named.

      • BatmanAoD@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        8 months ago

        The unnecessary and confusing functions are horrible, yes, but I’d still say that the fact that they’re wrong is the “worst” part.

        • WoahWoah@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 months ago

          That’s enough chit-chat, nerds. Back to work.

          • Management

Programming Humor@lemmy.world

programminghumor@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 2 users / week
  • 144 users / month
  • 1.49K users / 6 months
  • 3 local subscribers
  • 3.17K subscribers
  • 85 Posts
  • 450 Comments
  • Modlog
  • mods:
  • 2e8a9d6bb6935a54@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org