307
submitted 5 months ago* (last edited 5 months ago) by Avicenna@programming.dev to c/programmer_humor@programming.dev

A NaN spotted in the wild.

top 38 comments
sorted by: hot top new old
[-] Diplomjodler3@lemmy.world 48 points 5 months ago

I like NaN bread!

[-] NotSteve_@lemmy.ca 45 points 5 months ago

THE PRICE TAGS ARE RUNNING JAVASCRIPT!!

[-] Orygin@sh.itjust.works 30 points 5 months ago* (last edited 5 months ago)

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 13 points 5 months 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.

[-] sik0fewl@piefed.ca 3 points 5 months ago* (last edited 5 months ago)

It still makes no sense to convert to float and is likely to lead to a big at some point

[-] NihilsineNefas@slrpnk.net 33 points 5 months ago

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 13 points 5 months ago* (last edited 5 months ago)

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 7 points 5 months ago

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 10 points 5 months ago

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

[-] Leviathan@fedinsfw.app 5 points 5 months ago* (last edited 5 months ago)

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 8 points 5 months ago* (last edited 5 months ago)

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 5 points 5 months 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.

[-] Bougie_Birdie@piefed.blahaj.zone 4 points 5 months ago

I mean, you got it totally right about how it works, that's better than most people. I work in retail and you hear some pretty crazy beliefs about how it works.

Totally agree with you about nationalizing. Food is a universal right and we should treat it as such.

[-] Dave 3 points 5 months ago

Sorry, zero is a number, so it can't be free. One soul please, or alternatively one upper and one lower limb.

[-] Psythik@lemmy.world 3 points 5 months ago

It already is, which is why I turn off all radios on my phone and put it in airplane mode when I go grocery shopping now. But even then, I'm pretty sure they can still track the beacon signal wifi and BT give off even when disabled.

[-] copacetic@discuss.tchncs.de 20 points 5 months 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)

[-] MummifiedClient5000@feddit.dk 16 points 5 months ago

That'll be one [object Object].

[-] raman_klogius@ani.social 9 points 5 months ago

With my [Object object] please 😁

[-] megopie@beehaw.org 7 points 5 months ago

IT DOESN’T NEED TO BE COMPUTER! IT IS A PRICE TAG! THERE IS NO REASON IT SHOULD BE ABLE TO RUN DOOM!

[-] FiniteBanjo@programming.dev 2 points 5 months ago

Technically, these digital tags are being developed to automatically update price from a database, so there is a computer somewhere.

[-] partofthevoice@lemmy.zip 3 points 5 months ago* (last edited 5 months ago)

I think they’re just e-reader technology that accepts input by RF or something. Probably has an RFID on it, so a control node just (1) scans the RFID, (2) looks up price of product for that RFID, (3) send signal back to update the display. Meaning, someone still has to walk up to the price tag in order to update it.

My worry is live updates to pricing tags based on things like facial / behavioral recognition from the cameras in the ceiling.

I’ve looked at these things. I don’t see any modules for wireless communication over lan, Bluetooth, or anything like that.

[-] rmuk@feddit.uk 5 points 5 months ago

See that window in the top left? It's a combination photovoltaic cell and IR receiver, so the tag can be powered indefinitely from the shop lights and they can use ceiling-mounted IR blasters to update them. There's no return path so the blasters just repeatedly transmit the entire inventory and price list, over and over.

[-] HobbitFoot@thelemmy.club 7 points 5 months ago* (last edited 5 months ago)
[-] Lemminary@lemmy.world 4 points 5 months ago

Yes, it's Not an Nonion

[-] kibiz0r@midwest.social 5 points 5 months 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!

[-] FiniteBanjo@programming.dev 4 points 5 months ago

Do you accept ⯎̷̨̩̯͎͕̮͎͈̞͙̠̽̈́͂͊͗̆͗̒̓͠͠ͅ⥢̴̛̠̩͑̂ⵅ̴̨̨͍͎̄̌͂̐͗͂̄̓́̽͊͐̆̍͘⊣̸̢͙͈̠̗̬͎͎̗̖̓͂͌͆͑̔̔ͅⅆ̸̧̜̲̙̱̱̙̦̗̺́͗◰̷̛͙͓̹͕̯̘̝̌̈́̍͐̌͘̕̕⽅̶̠͔̼̙̠̻̖͕̻͔̗͗̎́̈́̃̀̈́̽̽̅͌͜⸦̴͎͚̦͖̜̞͙̲̑̕?

[-] Avicenna@programming.dev 4 points 5 months ago

currencies beyond my comprehension, sorry I can't pay.

[-] valkyre09@lemmy.world 4 points 5 months ago

Reminds me of the Pokémon that glitch multiplied your items

[-] HeyThisIsntTheYMCA@lemmy.world 3 points 5 months ago

Oh, I don't have a Nan I have a Gran but she's for sale too how much you offering.

COCONUT WAFERS they better be organic

[-] lIlIlIlIlIlIl@lemmy.world 3 points 5 months 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!

[-] mercano@lemmy.world 3 points 5 months ago

It cannot be paid for with money, only blood.

[-] chuckleslord@lemmy.world 3 points 5 months ago

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

[-] davidgro@lemmy.world 3 points 5 months ago

Best case, it's available for barter.

[-] NigelFrobisher@aussie.zone 2 points 5 months ago

NaN is still mad about the new twenty pence being so small and fiddly.

[-] Th3D3k0y@lemmy.world 2 points 5 months ago

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

[-] nanometer1625@thelemmy.club 2 points 5 months ago

Sounds expensive. Most nans weight a lot of pounds.

[-] blarghly@lemmy.world 2 points 5 months ago

Shopping at the Lovecraftian grocery store be like:

this post was submitted on 28 Jun 2026
307 points (99.7% liked)

Programmer Humor

34376 readers
748 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