this post was submitted on 28 Jun 2026
140 points (100.0% liked)

Programmer Humor

32005 readers
1283 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 3 years ago
MODERATORS
 

A NaN spotted in the wild.

top 20 comments
sorted by: hot top controversial new old
[–] raman_klogius@ani.social 5 points 37 minutes ago

With my [Object object] please 😁

[–] HobbitFoot@thelemmy.club 3 points 12 minutes ago* (last edited 11 minutes ago)

Is it garlic NaN?

[–] Th3D3k0y@lemmy.world 2 points 42 minutes ago

I need to spend more money on more mentions of the word "Organic"

[–] chuckleslord@lemmy.world 2 points 59 minutes ago

Well... it'll make your total a NaN as well.

[–] mercano@lemmy.world 2 points 1 hour ago

It cannot be paid for with money, only blood.

[–] NihilsineNefas@slrpnk.net 22 points 3 hours ago (1 children)

Oh fucking joyous, automatic surge pricing labels have finally hit the UK, can't wait for it to be tied to your wifi shadow and device biometrics so that supermarkets can charge people more for daily goods than their neighbours due to their credit/social/political standing.

I mean "Haha that means it's free, right? Lol."

[–] zikzak025@lemmy.world 8 points 3 hours ago* (last edited 3 hours ago) (2 children)

Only a matter of time before a store picks up data on certain people's net worth and suddenly all the price tags double when they walk down an aisle.

I guess that also sets up the potential side business of paying poorer people to do shopping for you. Well, I mean, I guess that already exists too.

[–] NihilsineNefas@slrpnk.net 5 points 3 hours ago (1 children)

I guess that also sets up the potential side business of paying poorer people to do shopping for you

Scamazon, doordash, ubereats, any of those "go buy my groceries, and bring them to my door lest I suffer the fate of seeing a peasant in any other role than serving me." companies count as exactly that.

Just ask a millionaire what the cost of a loaf of bread is, or a 2kg bag of potatoes.

[–] zikzak025@lemmy.world 5 points 3 hours ago

Just ask a millionaire what the cost of a loaf of bread is, or a 2kg bag of potatoes.

[–] Leviathan@fedinsfw.app 3 points 3 hours ago* (last edited 1 hour ago) (1 children)

In Canada if a poorer person picked an item up at $3, then some rich dude walked behind him and it became $4, legally they would then have to give him the item free because of a price difference on an item under $10. Over $10 dollars you automatically get the lower of the two prices.

Edit: I've been informed it's not a law, but a voluntary act by retailers (screams internally).

[–] Bougie_Birdie@piefed.blahaj.zone 6 points 3 hours ago* (last edited 3 hours ago) (1 children)

This is not a law, it's a common and voluntary thing by the retailer.

I wish it was a law, that'd be sick and nip this whole surge thing in the bud.

$15 in Quebec now, that's neat

[–] Leviathan@fedinsfw.app 2 points 1 hour ago

Man, egg on my face, I thought it was a law. The way grocery stores are actively turning hostile towards customers we should probably make it a law.

In truth, we should probably nationalize grocery stores, but a more realistic, capitalism driven, "profits before people" approach would be to make it law.

[–] copacetic@discuss.tchncs.de 10 points 3 hours ago

"I have five pounds. Is that enough?"

"No."

"It costs more than five pounds?"

"No."

"How much do I have to pay?"

"This is NaN pounds."

"That means it costs more than five pounds?"

"No."

"It costs less than five pounds?"

"No."

"Exactly five pounds?"

"No."

leaves the shop

(Remember, comparison with NaN is always false)

[–] Diplomjodler3@lemmy.world 26 points 4 hours ago

I like NaN bread!

[–] NotSteve_@lemmy.ca 24 points 4 hours ago (1 children)

THE PRICE TAGS ARE RUNNING JAVASCRIPT!!

[–] Orygin@sh.itjust.works 7 points 1 hour ago* (last edited 1 hour ago) (1 children)

NaN are not exclusive to JavaScript, it's more scary that they're using floating point numbers for monetary value.
If you buy something at -Inf, do they empty the business bank account into yours?

[–] verdare@piefed.blahaj.zone 5 points 1 hour ago

Eh, it’s not a problem if prices are being converted to floating point at some point before being displayed.

What you don’t want to do is store the definitive price as a floating point and perform calculations with it. I don’t see any reason to assume that’s happening here.

[–] lIlIlIlIlIlIl@lemmy.world 2 points 2 hours ago

Push a pen through each one of those eink displays - they’re not cheap.

TikTok challenge: each eink price tag is worth one point - GO!

[–] MummifiedClient5000@feddit.dk 11 points 3 hours ago

That'll be one [object Object].

[–] kibiz0r@midwest.social 5 points 3 hours ago

Plot twist: it’s accurate, because the price is not a number but in fact your very soul.

The folks who said barcodes were the mark of the beast were so close!