tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.de to Programmer Humor@programming.devEnglish · 2 年前

Actually not funny

i.imgur.com

message-square
41
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
302

Actually not funny

i.imgur.com

Gollum@feddit.de to Programmer Humor@programming.devEnglish · 2 年前
message-square
41
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or # to comment.
  • heartlessevil@lemmy.one
    link
    fedilink
    English
    arrow-up
    66
    ·
    2 年前

    Programmer: “Does that mean it’s free?”

    Cashier: stabs you in the face

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      2 年前

      Undefined behavior can go bad quickly.

      • ruffsl@programming.dev
        link
        fedilink
        English
        arrow-up
        17
        ·
        2 年前

        Could go the other way though. Ask them nicely if they’d be willing to free up their heap of inventory, and if they return you a cart overflow, you know you’ve stumbled upon the ultimate zero day coupon.

    • Spaceape@lemmy.nrsk.no
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 年前

      I give money to cashier, change comes out of coin dispenser. I say “Looks like I won again!”, cashier dies a little inside.

      Every time.

      • Malfeasant@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 年前

        Long long ago in a callcenter not too far away, I made a guy choke on his drink. As required, I asked if there was anything else he needed before I ended the call, to which he replied “the winning lottery numbers?” I said “if I had those, I wouldn’t be talking to you.”

    • Moc@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      Unhandled exception leads to panic

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      2 年前

      deleted by creator

      • Kogasa@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        No, but these nulls might indicate references that previously pointed to memory that was freed.

    • velxundussa@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 年前

      I worked in groceries story when I was younger.

      But funily enough, it’s probably one of the rare times I’d have answered “yes”!

      We got a policy here where anything mislabelled under 10$ is free for the first item. Anything over 10$ gets a 10$ rebate.

      My understanding is that it was put in place a while ago when stores stopped labelling individual items to keep them in check and ensure that consumers had a recourse in case of mistake.

      Source: https://www.opc.gouv.qc.ca/en/consumer/topic/price-discount/store/tip-sheet/

      NULL being “no money” by any definition, and the regular price for this probably being under 10$… well, it’s probably free!

    • I Cast Fist@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Everything is free. The problem is avoiding the cops afterwards.

  • Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    1
    ·
    2 年前

    can I get uhhhhh NullPointer Exception: Object reference not set to an instance of an object.

    • randomblock1@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 年前

      sorry we only have Exception in thread “main” java.lang.NullPointerException, is that okay?

      • Bappity@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 年前

        that’s how I like my coffee

      • yum13241@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        How about

        Class lol : Object
        {
        public static init void main (string args)
        {
            virtual void A_Start()
            {
                  Java.Print(args)
                  break
             }
        }
        }
        

        In case it’s not clear, I know nothing about Java.

  • lightsecond@programming.dev
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 年前

    !softwaregore@lemmy.world

  • z3n0x@feddit.de
    link
    fedilink
    arrow-up
    13
    ·
    2 年前

    Mmh nice, nullives.

  • Grandwolf319@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 年前

    It is funny, it’s just that the amount of funny is null.

  • Matti@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 年前

    When you buy these an exception is thrown.

    • Speiser0@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Real world doesn’t make exceptions. So you’ll get UB.

  • nowitsabby@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 年前

    Item labels only do this when they’re very stressed

  • Jakylla@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 年前

    At least, the CSS works

  • passepartout@feddit.de
    link
    fedilink
    arrow-up
    6
    ·
    2 年前

    null

    • sbv@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      null null null

      • SariEverna@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        2 年前

        Null null null null null? Null.

        • sbv@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          Null null NULL!

          • ImpossibleRubiksCube@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            2 年前

            deleted by creator

  • roofuskit@kbin.social
    link
    fedilink
    arrow-up
    6
    ·
    2 年前

    Free olives, the cost is listed as 0.

    • osprior@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      null != 0

      • roofuskit@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        Depends.

  • ThenThreeMore@startrek.website
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 年前

    Programming aside electric self edge labels are the future. Where I work we do paper labels for about 50 pretty small stores and use best part of 30,000 sheets of paper a week.

    • Uli@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      I imagine with inflation causing an increased frequency of relabeling and relabeling costs causing an increased rate of inflation, it’s only a matter of time before I become too lazy to finish this joke.

      • ImpossibleRubiksCube@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 年前

        deleted by creator

    • coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      600 labels per store per week. Seems like a big chunk of the inventory changes price every week, not just some tens of articles for a temporary sale.

      • ThenThreeMore@startrek.website
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 年前

        It’s more. Each a4 sheet has considerably more than 1 label on it. Most weeks there’s 90-100 pages of weekly limited offer specials alone. Then every day there’s large amounts of regular stock coming onto and off of special offer. Then produce is constantly being adjusted based on seasonality, the current weather (better prices on salad when it’s hot etc), and to help sell through (warehouse has accepted some stock with reduced shelf life etc).

        Then there’s the fact the country I’m from has been experiencing food price inflation at almost 20% this year.

    • Squids@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Wait these are new for most people? They’ve been around for years where I live

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 年前

      deleted by creator

      • ThenThreeMore@startrek.website
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 年前

        Yep. My work is rolling them out later in the year. The ones we are getting are basic colour eink, I think they can do a little red to highlight special offers. Batteries are supposed to last several years.

        • ImpossibleRubiksCube@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 年前

          deleted by creator

  • ExperimentalGuy@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    2 年前

    Don’t try to buy it unless u want the register to open a black hole when the cashier puts it in.

  • snor10@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    2 年前

    *olives > /dev/null

  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 年前

    Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?

    • coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      In a way it’s still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000.

      Hence NullPointerException / NullReferenceException or similar, depending on the language.

    • Haus@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      I’d guess, in context, it’s a floating point price column that hasn’t been set, and the table designer didn’t specify the column to be NOT NULL.

      • csm10495@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        I guess Rust would have solved the problem as well.

    • kamenlady@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Null is zero in german - so this must be free, it’s a german shop

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 年前

      deleted by creator

  • oldfart@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 年前

    In a country where Null literally means zero? Awesome

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.

  • 1.63K users / day
  • 3.62K users / week
  • 8.81K users / month
  • 18K users / 6 months
  • 597 local subscribers
  • 27.9K subscribers
  • 1.98K Posts
  • 76.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org