The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago

megabool

lemmy.blahaj.zone

message-square
12
link
fedilink
317

megabool

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago
message-square
12
link
fedilink

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

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

alert-triangle
You must log in or # to comment.
  • smaximov@lemmy.world
    link
    fedilink
    arrow-up
    30
    ·
    3 months ago

    BIG_IF_TRUE

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    3 months ago

    Missing the truth nuke

  • fruitcantfly@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    3 months ago

    I prefer the classic Bool:

    enum Bool 
    { 
        True, 
        False, 
        FileNotFound 
    };
    
    • DasFaultier@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 months ago

      Ah yes, the three genders.

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 months 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. 🤭

  • jballs@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 months 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”.

  • luciole (he/him)@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    megabool is_boy(const Coder *coder);

  • ranzispa@mander.xyz
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    I’m confused as to the use of double true.

    I’ve been running a query adding TRUE entries to other TRUE entries, but I just get TRUE as result.

  • bitjunkie@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

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

  • 33550336@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    This is just reinvention of Łukasiewicz multi-valued logic

  • Mearcfara@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    missing this_tbh

  • daniskarma@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

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

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: !programmer_humor@programming.dev

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.

  • 148 users / day
  • 1.72K users / week
  • 4.22K users / month
  • 9.23K users / 6 months
  • 1 local subscriber
  • 33.1K subscribers
  • 1.78K Posts
  • 31.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org