minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago

Int and bool walk into a bar

lemmy.world

message-square
34
fedilink
755

Int and bool walk into a bar

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago
message-square
34
fedilink
  • 👁️👄👁️@lemm.ee
    link
    fedilink
    English
    arrow-up
    51
    arrow-down
    2
    ·
    edit-2
    2 years ago

    Shouldn’t it be a float that goes between 0 and 1 instead of an int. In this situation they’d be the same thing, considering 1 would be max lol.

    • MaggiWuerze@feddit.de
      link
      fedilink
      arrow-up
      4
      arrow-down
      7
      ·
      2 years ago

      So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?

      • sup4rawr@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 years ago

        but degrees aren’t integers, you can definitely also shower at 40,5°C

        • jcg@halubilo.social
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Not to overdissect a meme, but it really should be an unsigned byte since that’s what the digitiser would probably have as an input or output.

      • wieli99@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        You’re getting down voted, but you’re right lol

        • MaggiWuerze@feddit.de
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Yeah, don’t know why people would describe temperature on a 0-1 scale

      • 👁️👄👁️@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        2 years ago

        The temperature handle is either off or maxed out in this scenario. Not the temperature.

        • MaggiWuerze@feddit.de
          link
          fedilink
          arrow-up
          2
          arrow-down
          3
          ·
          2 years ago

          Yeah, that’s why it says “supposed to work”

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.

  • 117 users / day
  • 265 users / week
  • 7.33K users / month
  • 12.4K users / 6 months
  • 1 local subscriber
  • 23.7K subscribers
  • 1.44K Posts
  • 45.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org