Comment on Burger King Giving Discounts If Facial Recognition Thinks You're Hungover
LWD@lemm.ee 1 year ago
I could have written that algorithm for them.
IsCustomerHungover() if restaurant=Burger King return true else return true # out of spite tbh
geogle@lemmy.world 1 year ago
*==
= != ==
victorz@lemmy.world 1 year ago
How do you know which language they are writing in?
geogle@lemmy.world 1 year ago
Got me
NegativeInf@lemmy.world 1 year ago
Based on syntax, use of indents for code blocking, and the comment hash, I’d say it’s meant to be python but has a bug. But it could always just be pseudo code with a mistake. But it doesn’t look like any single = conditional language I know.
victorz@lemmy.world 1 year ago
It looks like pseudo code to me. But pseudo code doesn’t really have a standard, does it? So their personal flavor is perfectly acceptable and correct (single equals acting as comparison). We know what they mean, what they’re trying to convey – we get the joke. No need to pick it apart. 👍
LWD@lemm.ee 1 year ago
TBF I got a kick out of them using “*” (in a syntax meant for human communication, correcting stuff) and then adding “==” to it. Meta-pseudocode
But you’re right, I wasn’t really thinking of anything besides typing as little as possible on my phone
LWD@lemm.ee 1 year ago
It’s okay I wrote this in basic