Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

34 replies

Oryginreply
sh.itjust.works

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?

29
verdarereply
piefed.blahaj.zone

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.

13

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

3
slrpnk.net

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

30
zikzak025reply
lemmy.world

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.

13
slrpnk.net

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.

7

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

10
Leviathanreply
fedinsfw.app

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

5
Leviathanreply
fedinsfw.app

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.

5

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.

4

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.

3

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

3

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

17

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!

4
programming.dev

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

4

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!

4

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

3

You reached the end

How would you like to pay your NaN pounds? | Spyke