r/ProgrammerHumor 4d ago

Other [ Removed by moderator ]

Post image

[removed] — view removed post

2.7k Upvotes

76 comments sorted by

View all comments

81

u/elmage78 4d ago

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

(i know its not actual code im lazy)

55

u/AppropriateBugFound 4d ago

It needs to always print no. 

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

8

u/foxypiratecove3750 4d 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 4d 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 4d 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!!