this post was submitted on 04 Apr 2024
526 points (100.0% liked)

Programmer Humor

421 readers
23 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
 
top 27 comments
sorted by: hot top controversial new old
[–] Zagorath@aussie.zone 139 points 7 months ago (1 children)

The meme says "IRS", so it's obviously intended to refer to America.

But outside of that context, they'd fucking deserve it for their shitty dark pattern UX trying to export American tipping culture into the civilised world. If people want to tip, they can do it using cash (so the money actually goes to the person you intended it to!). Or at most, there could be a little "tip" button in the corner somewhere that then takes you to a page like this. It shouldn't be shoved in our faces like this.

[–] kevincox@lemmy.ml 15 points 7 months ago

In most places even if you tip cash they are supposed to keep that for the tip pool and it is split. Often among the cook staff and other people at the restaurant.

[–] fubarx@lemmy.ml 130 points 7 months ago (1 children)

Little Bobby Tables says hi.

[–] bobbytables@feddit.de 67 points 7 months ago (2 children)
[–] LordTrychon@startrek.website 7 points 7 months ago

You're not so little anymore!

[–] MadMadBunny@lemmy.ca 3 points 7 months ago

Whaaaaaaaat!?!?

[–] Coasting0942@reddthat.com 50 points 7 months ago

Jokes on you. Restaurant owner too rich, behavior is within normal range for IRS AI.

Though the AI is interested on how your bank account is higher than it’s supposed to be.

[–] RavenFellBlade@startrek.website 29 points 7 months ago* (last edited 7 months ago) (1 children)

I'd love to know what this would actually do.

Edit: Thanks for the responses and lively discussion!!

[–] Kerb@discuss.tchncs.de 29 points 7 months ago* (last edited 7 months ago) (1 children)

its an sql injection attack.
its rather unlikely that it works in a modern app.

assuming this would work,
it injects a command in the sql database.

it is assumed that the app runs a sql querry with the input field as a parameter e.g.
INSERT INTO "bills" (item, ammount, tip) VALUES ("steak", "20,00 $", "content of the custom tip goes here");

the semicolon indicates the end of the querry,
so the the text would cause the app to run an unfinished querry, and then start a new querry that messes up the content of the bills table.

[–] some_guy@lemmy.sdf.org 8 points 7 months ago (1 children)
[–] RavenFellBlade@startrek.website 2 points 7 months ago

Is that Bobby?

[–] northendtrooper@lemmy.ca 15 points 7 months ago (3 children)

Can't they trace it back to you since you're using a card to get that prompt?

[–] survivalmachine 13 points 7 months ago (1 children)

In my country, we can buy pre-paid credit cards in the supermarket using cash. I guess that is still traceable using supermarket security cameras and facial recognition, but if you're attempting this, I'd make it as difficult as possible.

[–] SnipingNinja@slrpnk.net 2 points 7 months ago

You just have to buy a prepaid card through another third party

[–] ProgrammingSocks@pawb.social 2 points 7 months ago

This isn't even remotely viable. There's so much isolation and "cloud" shit that it wasn't viable from the start. It's just a joke.

[–] psud@aussie.zone 1 points 7 months ago

Maybe. If they can identify which record was the last one changed and the last one changed its directly related to the one that made the change and the ended transaction statement successfully posted a transaction

If the SQL injection crashed that person's transaction there's little chance of finding the culprit

[–] Kolanaki@yiffit.net 14 points 7 months ago

What code could I enter there to get them to pay me for the food? 🤔

[–] RagnarokOnline@programming.dev 11 points 7 months ago

Now if I could only bypass the float only input field…

[–] some_guy@lemmy.sdf.org 2 points 7 months ago

I laughed a lot at this.

[–] tiefling@lemmy.blahaj.zone 1 points 7 months ago* (last edited 7 months ago) (2 children)

I wish 15% and 18% were options. Normally it's more like 20%, 25% (default), 28%, 30%

[–] Rediphile@lemmy.ca 2 points 7 months ago

Eventually people will say that about the current options lol.

There should be no default percent options at all. None.

'complete transaction' or 'add optional tip'.

[–] kalpol@lemm.ee 0 points 7 months ago (1 children)

Literally saw 25% to 50% range the other day

[–] EndlessNightmare@reddthat.com 1 points 7 months ago (1 children)

A 50% tip can get your credit card flagged as potentially fraudulent activity.

[–] Rediphile@lemmy.ca 1 points 7 months ago (1 children)

Wouldn't they just see the total?

[–] EndlessNightmare@reddthat.com 2 points 7 months ago (1 children)

I've had transactions flagged for (intentionally) leaving large tips before. These large tips were justified for various reasons, such as comped meals.

Could be the specific credit card company I use?

[–] Rediphile@lemmy.ca 1 points 7 months ago (1 children)

What makes you think it was flagged for a large tip specifically, rather than just an unusually high transaction?

It still confused me how they would know it was a $20 steak and $80 tip versus 5x $20 steaks and no tip. It would appear the same, a $100 transaction at Bob's Steakhouse.

[–] EndlessNightmare@reddthat.com 2 points 7 months ago

The message specifically said it was due to the "unusually large tip". They wanted me to confirm that it was intended.

If the article linked below is to be believed, the credit card company does indeed know how much of the transaction is a tip due to the way the transaction is processed. Note that this was at a full-service restaurant, not tipping at the counter for fast food or some other thing.

Consider when you pay with a credit card at a sit-down restaurant, they read the card first. Then you write in the tip on the receipt, meaning that they process this part later after the initial card reading. It is probably different with the tabletop self-checkout devices though.

https://www.quora.com/Why-do-tips-given-in-restaurants-never-show-on-credit-card-statements