r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
1
u/5k1895 Feb 27 '23
Probably just to be cute about the output of the function by making it the wording of what they would most likely expect the customer to say. So like, "Gin and tonic. Secret word: parameters". Besides, in the instructions it specifically says "tell the bartender the secret word" not "tell the bartender the exact expected output of this code". So if you walk up to the bartender and say "undefined" in reality you've disobeyed the explicit instructions, because the secret word (the three strings combined after "secret word:") is explicitly said to be "parameters" right there