this post was submitted on 04 Apr 2024
164 points (97.7% liked)

Programmer Humor

19315 readers
81 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 50 comments
sorted by: hot top controversial new old
[–] umbraroze@lemmy.world 49 points 6 months ago (1 children)

One day someone will use the SQL injection to execute code on the remote server to add message to the web site that tells the workers to unionise and demand actually fair wages and put an end to the whole tipping nonsense

[–] melpomenesclevage@lemm.ee 11 points 6 months ago* (last edited 6 months ago)

Please write this code and I'll do it ~~tomorrow~~ when stuff opens today.

[–] Zagorath@aussie.zone 48 points 6 months ago (19 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.

[–] Taalen@lemmy.world 13 points 6 months ago* (last edited 6 months ago) (2 children)

Live in a country where tipping is practically unheard of. Lately pay terminals have started appearing in restaurants that have asking for tip enabled by default, and restaurants often don't know how to disable it.

Well, at least there are some safeguards. I was handed the terminal so I put in my PIN code, not realising it was actually asking for a tip. I was pretty confused when it said "value too high" or something like that.

[–] gerbler@lemmy.world 9 points 6 months ago (1 children)

restaurants often don't know how to disable it.

The owners know how. They also know that by leaving it there they make extra money on top of sales. They also know that the person getting berated for having it there is the worker who can't change it.

[–] Case@lemmynsfw.com 6 points 6 months ago

I was the SME over POS terminals in a past job.

Owners are often the biggest morons at the location.

Before that, I used the same basic software package at Subway because the owner couldn't be bothered, and the manager, great lady, was not technically apt.

[–] freebee@sh.itjust.works 9 points 6 months ago

Taalen's PIN > 0001 confirmed.

[–] Gradually_Adjusting@lemmy.world 8 points 6 months ago* (last edited 6 months ago) (1 children)

I, an American, was ashamed when I had to ask that a tip be removed from my bill at a restaurant in Camden.

CAMDEN WAS SUPPOSED TO BE WOKE AND Y'ALL FUCKING DOG OVER HERE

Pay your damn staff a good wage

[–] Zagorath@aussie.zone 4 points 6 months ago (2 children)

Camden in Sydney? That's appalling. It's bad enough to be presented with a screen like in the OP. Needing to actually speak to a person to not have a tip added sounds probably illegal.

[–] Gradually_Adjusting@lemmy.world 6 points 6 months ago (5 children)

Camden Town in London actually; historically counterculture, but punk is dead at The Cheese Bar.

load more comments (5 replies)
[–] Thisfox@sopuli.xyz 3 points 6 months ago

Yes, if it had been in Australia. Report it when you see it.

[–] kevincox@lemmy.ml 3 points 6 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.

load more comments (16 replies)
[–] JeffreyOrange@lemmy.world 24 points 6 months ago (1 children)

the adjectives on the tip options are so weird lol What a shitty system to even exist

[–] Obi@sopuli.xyz 12 points 6 months ago (5 children)

I want to know what it says under 30%.

[–] Kolrami@lemmy.world 11 points 6 months ago* (last edited 6 months ago) (1 children)
[–] Obi@sopuli.xyz 6 points 6 months ago

Thank you, my curiosity is now fully satisfied!

[–] evranch@lemmy.ca 4 points 6 months ago

"I'm drunk"

[–] samus12345@lemmy.world 3 points 6 months ago

"Best Service Ever!"

[–] LeroyJenkins@lemmy.world 2 points 6 months ago
load more comments (1 replies)
[–] fubarx@lemmy.ml 20 points 6 months ago (1 children)

Little Bobby Tables says hi.

[–] bobbytables@feddit.de 16 points 6 months ago (3 children)
[–] LordTrychon@startrek.website 4 points 6 months ago

You're not so little anymore!

load more comments (2 replies)
[–] Kolanaki@yiffit.net 4 points 6 months ago (2 children)

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

[–] PrinceWith999Enemies@lemmy.world 2 points 6 months ago

Negative tip value.

load more comments (1 replies)
[–] RavenFellBlade@startrek.website 3 points 6 months ago* (last edited 6 months ago) (2 children)

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

Edit: Thanks for the responses and lively discussion!!

[–] Kerb@discuss.tchncs.de 5 points 6 months ago* (last edited 6 months ago) (2 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.

load more comments (2 replies)
[–] BombOmOm@lemmy.world 3 points 6 months ago (19 children)

Assuming the accounting system this thing links with both does not protect from SQL injection attacks (many don't, despite it being easy to protect against) and also has a table named "Bills" with a field named "amount"; what this would do is go through every single Bills record and half the value in the amount field. This would completely fuck the system, particularly when it came to billing and tax filing as the numbers for accounts billing and receivable wouldn't even come close to matching each other. The accounting department would have a hell of a time fixing the damage.

[–] Aquila@sh.itjust.works 3 points 6 months ago (4 children)

Need to throw a rand() in there to make it less easy to unfuck

load more comments (4 replies)
load more comments (18 replies)
[–] tiefling@lemmy.blahaj.zone 3 points 6 months ago* (last edited 6 months ago) (9 children)

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

[–] Rediphile@lemmy.ca 5 points 6 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'.

[–] LordKitsuna@lemmy.world 3 points 6 months ago

I hate %, give me a option to round up to the nearest 5. This is useful for my financial tracking, and I'm willing to bet a lot of people would like nice round numbers. If I buy a coffee or whatever and it's $7 I round up to $10, not because I'm trying to give a good tip but because it's more convenient for me when I'm sitting there doing my finances (I track everything) and while I know that not everyone would universally agree maybe they would only want to round up to the nearest whole dollar the fact remains I feel like most places would actually end up with more total tips overall if that was a one button option

load more comments (7 replies)
[–] xlash123@sh.itjust.works 2 points 6 months ago (1 children)

Too complicated. Just enter a negative number.

[–] kevincox@lemmy.ml 6 points 6 months ago (1 children)

No negative sign on the keyboard. But you can enter 2147483647

[–] ripcord@lemmy.world 9 points 6 months ago

Risky gamble there

load more comments
view more: next ›