• Gork@lemm.ee
    link
    fedilink
    arrow-up
    124
    ·
    6 months ago

    This, folks, is why global definition of variables can lead to your untimely demise.

    • wia@lemmy.ca
      link
      fedilink
      arrow-up
      22
      ·
      6 months ago

      Exactly what I bring up when argumentative people show up with any of the inane food definitions “hot dog is sandwich” or “milkshake is soup” and what not.

    • ArtVandelay
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      edit-2
      6 months ago
      def hot(temp: int = 340):
          return temp
      

      That way Bev can define temp however she needs, but if Picard doesn’t specify, he gets his tea at a nice drinkable Kelvin temp.

    • Kelly Aster 🏳️‍⚧️
      link
      fedilink
      English
      arrow-up
      10
      ·
      6 months ago

      Yeah you gotta scope dat shit.

      No way the Ent-D rolled off the line with global vars for everything, was this before or after O’Brien transferred off the ship?

      • Buddahriffic
        link
        fedilink
        arrow-up
        4
        ·
        6 months ago

        Crusher is in a shuttle, so the scope of that “hot” is more than just Ent-D. She might have accidentally destroyed the federation with that definition.

    • IninewCrow@lemmy.ca
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 months ago

      This is how I envision the future of modern day AI crap online …

      “… … the answer to your question is … imma gonna kill you … lol … what else would you like to ask?”

  • Mercuri
    link
    fedilink
    arrow-up
    19
    ·
    6 months ago

    Okay, this actually make me cackle like a buffoon.

  • DarkCloud
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    6 months ago

    If TNGs computer were as dumb as ChatGPT.

    Thankfully they only let ChatGPT run the hollodecks… Which explains why they’re always glitching out!

  • OpenStars@discuss.online
    link
    fedilink
    English
    arrow-up
    11
    ·
    6 months ago

    I have said it before but I’ll say it again: be careful who you give root/superuser permissions to:-).

  • M137
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    6 months ago

    “Kelvins” just feels wrong, but apparently is correct? (looking it up, seems like it’s right) It still feels the same as if you’d say “200 Fahrenheits” or “140 Celciuses”.

    • chuckleslord
      link
      fedilink
      arrow-up
      16
      ·
      edit-2
      6 months ago

      Celsius and Fahrenheit are both degrees units, meaning they’re scaled off of some arbitrary temperature. 20°C means 20 Celsius units away from Celsius 0.

      Kelvin isn’t scaled. 0 Kelvin means there’s no temperature energy at all. So there’s no need to couch it in degrees, since it isn’t arbitrary but a defined scale with an absolute zero point.

  • Etterra
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    This made me laugh way too goddamn hard.