this post was submitted on 01 Aug 2023
294 points (94.3% liked)

Programmer Humor

19551 readers
723 users here now

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] heartlessevil@lemmy.one 63 points 1 year ago (6 children)

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

Cashier: stabs you in the face

[–] marcos@lemmy.world 33 points 1 year ago (1 children)

Undefined behavior can go bad quickly.

[–] ruffsl@programming.dev 17 points 1 year 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.

[–] spaceape@lemmy.nrsk.no 5 points 1 year ago (1 children)

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 2 points 1 year 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."

[–] Moc@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Unhandled exception leads to panic

[–] ImpossibleRubiksCube@programming.dev 3 points 1 year ago (1 children)

Null is not the same as zero!!!

[–] kogasa@programming.dev 2 points 1 year ago

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

[–] velxundussa@sh.itjust.works 2 points 1 year 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/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!

[–] ICastFist@programming.dev 1 points 1 year ago

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