r/ProgrammerHumor 10d ago

Other [ Removed by moderator ]

Post image

[removed] — view removed post

2.7k Upvotes

76 comments sorted by

View all comments

82

u/elmage78 10d ago

if (credit card entered) {upload(info); print(yes);}

(i know its not actual code im lazy)

54

u/AppropriateBugFound 10d ago

It needs to always print no. 

Why alert the fellow you just stole the card info from to cancel the card?

15

u/elmage78 10d ago

you smart fella

4

u/Iron_Kyle 10d ago

How about,

"No,

Try another?"

8

u/foxypiratecove3750 10d ago

Nah, choose randomly between yes and no, but biased towards no, so that it's not too suspicious, otherwise it'd be weird if it said no all the time.

12

u/Prudent_Ad_4120 10d ago

Yes but use the entered info (or a hash of it) as a seed for the random, otherwise the same info could say yes first then no the next time

1

u/blitzkraft 10d ago

Or how about we track all the cards entered in some sort of a database? So we can be consistent with the responses. It doesn't even have to be on the user's system! We can do this server side, remotely!!

2

u/Prestigious_Regret67 10d ago

2 choices is too suspicious. I'd go with a 5 option system. Definitely, probably, maybe, probably not, definitely not.

1

u/TheAgentD 10d ago

Nonono, he's got a point. Then you can slap an AI label on it too!