Actually not funny

3 years ago by Gollum to c/programmer_humor

heartlessevil 64 points 3 years ago

Programmer: "Does that mean it's free?"

Cashier: stabs you in the face

path: 0 1944728, hotness: undefined, score: 64, children: 9
marcos 36 points 3 years ago

Undefined behavior can go bad quickly.

path: 0 1944728 1944986, hotness: undefined, score: 36, children: 1
ruffsl 17 points 3 years ago

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.

path: 0 1944728 1944986 1945398, hotness: undefined, score: 17, children: 0
spaceape 6 points 3 years ago

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.

path: 0 1944728 1958779, hotness: undefined, score: 6, children: 1
Malfeasant 3 points 3 years ago

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."

path: 0 1944728 1958779 1986506, hotness: undefined, score: 3, children: 0
Moc 3 points 3 years ago
path: 0 1944728 1959371, hotness: undefined, score: 3, children: 0
ImpossibleRubiksCube 2 points 3 years ago
path: 0 1944728 1983582, hotness: undefined, score: 2, children: 1
kogasa 2 points 3 years ago

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

path: 0 1944728 1983582 1986445, hotness: undefined, score: 2, children: 0
velxundussa 2 points 3 years ago

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/...

NULL being "no money" by any definition, and the regular price for this probably being under 10$... well, it's probably free!

path: 0 1944728 1984986, hotness: undefined, score: 2, children: 0
ICastFist 1 point 3 years ago

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

path: 0 1944728 1976183, hotness: undefined, score: 1, children: 0
bappity 21 points 3 years ago

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

path: 0 1955963, hotness: undefined, score: 21, children: 3
randomblock1 7 points 3 years ago

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

path: 0 1955963 1987072, hotness: undefined, score: 7, children: 2
bappity 2 points 3 years ago

that's how I like my coffee

path: 0 1955963 1987072 1987295, hotness: undefined, score: 2, children: 0
yum13241 1 point 3 years ago

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.

path: 0 1955963 1987072 2203593, hotness: undefined, score: 1, children: 0
lightsecond 16 points 3 years ago path: 0 1944609, hotness: undefined, score: 16, children: 0
matti 14 points 3 years ago

When you buy these an exception is thrown.

path: 0 1945019, hotness: undefined, score: 14, children: 1
Speiser0 1 point 3 years ago

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

path: 0 1945019 1947501, hotness: undefined, score: 1, children: 0
Grandwolf319 11 points 3 years ago

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

path: 0 1947754, hotness: undefined, score: 11, children: 0
z3n0x 10 points 3 years ago

Mmh nice, nullives.

path: 0 1947746, hotness: undefined, score: 10, children: 0
nowitsabby 9 points 3 years ago

Item labels only do this when they're very stressed

path: 0 1955694, hotness: undefined, score: 9, children: 0
Jakylla 9 points 3 years ago

At least, the CSS works

path: 0 1946576, hotness: undefined, score: 9, children: 0
passepartout 6 points 3 years ago

null

path: 0 1947017, hotness: undefined, score: 6, children: 4
sbv 3 points 3 years ago

null null null

path: 0 1947017 1948950, hotness: undefined, score: 3, children: 3
SariEverna 3 points 3 years ago

Null null null null null? Null.

path: 0 1947017 1948950 1952462, hotness: undefined, score: 3, children: 2
sbv 2 points 3 years ago

Null null NULL!

path: 0 1947017 1948950 1952462 1952568, hotness: undefined, score: 2, children: 1
ImpossibleRubiksCube 2 points 3 years ago
path: 0 1947017 1948950 1952462 1952568 1983712, hotness: undefined, score: 2, children: 0
roofuskit 5 points 3 years ago

Free olives, the cost is listed as 0.

path: 0 1990288, hotness: undefined, score: 5, children: 2
osprior 2 points 3 years ago

null != 0

path: 0 1990288 1992675, hotness: undefined, score: 2, children: 1
roofuskit 1 point 3 years ago

Depends.

path: 0 1990288 1992675 1994900, hotness: undefined, score: 1, children: 0
andthenthreemore 5 points 3 years ago

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.

path: 0 1950099, hotness: undefined, score: 5, children: 8
Uli 3 points 3 years ago

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.

path: 0 1950099 1953967, hotness: undefined, score: 3, children: 1
ImpossibleRubiksCube 2 points 3 years ago
path: 0 1950099 1953967 1983755, hotness: undefined, score: 2, children: 0
coloredgrayscale 2 points 3 years ago

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.

path: 0 1950099 1956163, hotness: undefined, score: 2, children: 1
andthenthreemore 2 points 3 years ago

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.

path: 0 1950099 1956163 1960888, hotness: undefined, score: 2, children: 0
Squids 1 point 3 years ago

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

path: 0 1950099 1992329, hotness: undefined, score: 1, children: 0
ImpossibleRubiksCube 1 point 3 years ago
path: 0 1950099 1983813, hotness: undefined, score: 1, children: 2
andthenthreemore 2 points 3 years ago

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.

path: 0 1950099 1983813 1985784, hotness: undefined, score: 2, children: 1
ImpossibleRubiksCube 1 point 3 years ago
path: 0 1950099 1983813 1985784 1987168, hotness: undefined, score: 1, children: 0
ExperimentalGuy 4 points 3 years ago

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

path: 0 1945008, hotness: undefined, score: 4, children: 0
snor10 4 points 3 years ago

*olives > /dev/null

path: 0 1991719, hotness: undefined, score: 4, children: 0
csm10495 2 points 3 years ago

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

path: 0 1954441, hotness: undefined, score: 2, children: 5
kamenlady 2 points 3 years ago

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

path: 0 1954441 1993867, hotness: undefined, score: 2, children: 0
Haus 2 points 3 years ago

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.

path: 0 1954441 1960317, hotness: undefined, score: 2, children: 1
csm10495 2 points 3 years ago

I guess Rust would have solved the problem as well.

path: 0 1954441 1960317 1960608, hotness: undefined, score: 2, children: 0
coloredgrayscale 2 points 3 years ago

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.

path: 0 1954441 1956005, hotness: undefined, score: 2, children: 0
ImpossibleRubiksCube 1 point 3 years ago
path: 0 1954441 1983680, hotness: undefined, score: 1, children: 0
oldfart 2 points 3 years ago

In a country where Null literally means zero? Awesome

path: 0 2050577, hotness: undefined, score: 2, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
31938
2357
7362

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

go to feed...