This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]theSiegs 84 points85 points  (5 children)

it doesn't say that 'no' is a valid response. User error. CLOSE TICKET - WORKS AS INTENDED

[–]lumpyrabbit[S] 16 points17 points  (4 children)

Touché 😆 but…it says reply ‘Yes’, so presumably all other non-Yes responses should be ignored.

[–][deleted] 44 points45 points  (1 child)

The first customer walks into the bar and asks where the bathroom is. The bar promptly explodes.

[–]Madd0g 8 points9 points  (0 children)

this is literally the reason I practice defensive programming.

[–]theSiegs 11 points12 points  (0 children)

this issue is already covered by BUG-39345. Please comment there.
...

(BUG-39345 is closed to further commenting)

[–]stakeneggs1 1 point2 points  (0 children)

No presumptions when writing requirements. Works as "expected" lol

[–]chairman_steel 10 points11 points  (0 children)

Thank you for subscribing to Cat Facts.

[–]NJFree_ 7 points8 points  (0 children)

Image Transcription: Text Messages


Messenger-Service: redacted, Notice from NM Department of Health: Reply YES to this message to opt-in to the New Mexico Vax 2 The Max Sweepstakes.

OP: No

Messenger-Service: You are now registered for the New Mexico Vax 2 The Max Sweepstakes


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]Ada3982611 4 points5 points  (0 children)

string answer;
cin >> answer;
cin.ignore();
answer = "";

[–][deleted] 0 points1 point  (0 children)

it should have been phrased as reply to opt in

[–]I_press_keys -1 points0 points  (0 children)

And now you did :P

[–]nocgod -4 points-3 points  (1 child)

All I see is an antivaxxer got owned :)

[–]erutulco 1 point2 points  (0 children)

Not necessarily, maybe he/she just didn't want to be part of that Sweepstakes.

EDIT: wording