Content Warning

This site contains NSFW content. By continuing, you confirm that you are comfortable viewing such content.

LemmyChan
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days ago

Paradox

quokk.au

message-square
65
link
fedilink
818

Paradox

quokk.au

𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days ago
message-square
65
link
fedilink
  • Chloé 🥕@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    149
    ·
    3 days ago

    Picture of a computer monitor showing a text editor with the code "if true {}". The font size is so big the code takes most of the width of the monitor.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      2 days ago

      come the fuck on

      string bigIfTrue(Boolean size)
      {
          string toAssign = '';
          if (size == true)
          {
              toAssign = 'big';
          }
          else
          {
              toAssign = 'small';
          }
          return toAssign;
      }
      
      • not@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        16
        ·
        2 days ago
        true ? 'big' : '';
        
      • bstix@feddit.dk
        link
        fedilink
        arrow-up
        31
        ·
        2 days ago

        Bloat. Nobody asked for else.

        • mcv@lemmy.zip
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Or assignment. Just return.

      • Hasherm0n@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        2 days ago

        Where’s your interface and factory?

        • fruitycoder@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          This actually gets loaded as a WASM module by a server less API service when a user ask if true return big

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          2 days ago

          hey, this is for fun and pseudocode.

          • gravitas_deficiency@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            5
            ·
            2 days ago

      • Axolotl@feddit.it
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago
        String bigIfTrue(Boolean size)
        {
            if (size == true){ return "big" }
            return "small";
        }
        
      • OpenStars@discuss.online
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        So very wrong.

        “big” != “Big”

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          shit time to git commit sudoku

          • OpenStars@discuss.online
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            Syntactically correct - the best kind of correct!!

    • marlowe221@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      That is indeed a big one!

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.

  • 155 users / day
  • 3.81K users / week
  • 7.5K users / month
  • 17K users / 6 months
  • 10 local subscribers
  • 33.1K subscribers
  • 1.09K Posts
  • 22.2K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org