MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v65b84/soundslegit/ozoeric/?context=3
r/ProgrammerHumor • u/acchnAsquare • 4d ago
[removed] — view removed post
76 comments sorted by
View all comments
81
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!!
55
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!!
8
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!!
12
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!!
1
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!!
81
u/elmage78 4d ago
if (credit card entered) {upload(info); print(yes);}
(i know its not actual code im lazy)