Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day ago

megabool

lemmy.blahaj.zone

message-square
34
link
fedilink
408

megabool

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day ago
message-square
34
link
fedilink

https://infosec.exchange/@catsalad/112133060746939956

https://en.wikipedia.org/wiki/Truth_table

alert-triangle
You must log in or # to comment.
  • fruitcantfly@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    15 hours ago

    I prefer the classic Bool:

    enum Bool 
    { 
        True, 
        False, 
        FileNotFound 
    };
    
    • noughtnaut
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      If this classic isn’t linked from that Wikipedia article (I never checked) it really should be. Like the “static cling” image, evnen encyclopedias need to know when to step out of formal style. 🤭

    • DasFaultier@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      15 hours ago

      Ah yes, the three genders.

  • smaximov
    link
    fedilink
    arrow-up
    36
    ·
    21 hours ago

    BIG_IF_TRUE

  • Yorick@piefed.social
    link
    fedilink
    English
    arrow-up
    21
    ·
    20 hours ago

    May I introduce the VHDL STD library where you can set an output to “don’t care”:

    Wikipedia IEEE-1164

    As an embedded electronics engineer discovering VHDL was a blast and a mindfuck!

    • white_nrdy@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      19 hours ago

      Don’t worry, VHDL is still a mindfuck sometimes even after being an FPGA engineer for years (mostly only using VHDL). It’s such a cool language, and I am glad you discovered and are enjoying it!

    • blibla@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      its just what most people what vall illegal state or impossible?

  • toynbee@piefed.social
    link
    fedilink
    English
    arrow-up
    44
    ·
    24 hours ago

    Yes, no, maybe, I don’t know, can you repeat the question?

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      20 hours ago

      You’re not the boss of me, now!

    • SkunkWorkz
      link
      fedilink
      arrow-up
      8
      ·
      21 hours ago

    • Klear@piefed.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 hours ago

      Splunge!

      • toynbee@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        23 hours ago

        I’m curious of what that means, but that link put me through five captchas in a row and I ran out of patience.

        • Klear@piefed.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          23 hours ago

          Youtube is giving you captchas? Ouch.

          It’s a Monty Python sketch. Here it is in text form.

          • toynbee@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            23 hours ago

            Thanks! I’m on a VPN using graphene, so that’s probably why YouTube doesn’t like me.

  • Elvith Ma'for@feddit.org
    link
    fedilink
    arrow-up
    26
    ·
    23 hours ago

    DOUBLE_PLUS_UNTRUE

  • RustyNova
    link
    fedilink
    arrow-up
    41
    ·
    1 day ago

    Missing the truth nuke

    • Klear@piefed.world
      link
      fedilink
      English
      arrow-up
      33
      ·
      1 day ago

      And DAMN_LIE

      • floquant@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        28
        ·
        1 day ago

        FAKE_NEWS (true but I don’t like it)

        • Klear@piefed.world
          link
          fedilink
          English
          arrow-up
          8
          ·
          1 day ago

          I also propose a new binary operator CARES_ABOUT_YOUR_FEELINGS

      • BlackRoseAmongThorns@slrpnk.net
        link
        fedilink
        arrow-up
        2
        ·
        15 hours ago

        and megabool::Statistics

      • nimisnimi@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        24 hours ago

        MEGABULL ,

  • jballs@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    18 hours ago

    While working on some client code, my coworker and I came across a case statement that said something like

    if myBoolean == TRUE
    then blah
    else if myBoolean == FALSE
    then blah blah
    else if myBoolean is null
    then blah blah blah
    

    Ever since we’ve always laughed at the “trinary bit”.

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    16
    ·
    1 day ago

    missing the classic

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 day ago

    PANTS_ON_FIRE,

  • 33550336
    link
    fedilink
    arrow-up
    1
    ·
    14 hours ago

    This is just reinvention of Łukasiewicz multi-valued logic

  • bitjunkie
    link
    fedilink
    arrow-up
    4
    ·
    20 hours ago

    I’d have gone with “truthy” and “falsy”, but I like the cut of the jib all the same

  • daniskarma@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    Quantum computer booleans. True/False/Everything in between.

  • gapa@feddit.nu
    link
    fedilink
    arrow-up
    12
    ·
    1 day ago

    Needs more emojis.

    • FunkyCheese@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      12
      ·
      24 hours ago

      👍 = true

      • rustydrd@sh.itjust.works
        link
        fedilink
        arrow-up
        17
        ·
        22 hours ago

        👎 = false
        🫳 = maybe
        🤌 = Italian false

  • Mearcfara@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    missing this_tbh

  • SaharaMaleikuhm@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    Damn JavaScript

Programmer Humor@programming.dev

programmer_humor@programming.dev

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]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 875 users / day
  • 1.77K users / week
  • 7.52K users / month
  • 17.3K users / 6 months
  • 9K local subscribers
  • 31.9K subscribers
  • 2.35K Posts
  • 90.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.19-4-g32c157fc
  • BE: 0.19.19-8-g30bb3e220
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org