

Post hog
Spongebob snark case
Reminds me of the comic where some guy made a script for ordering Indian food automatically, but he kept just getting orders of naan bread no matter what he ordered, until he finally found the NaN in the script.
Don’t come to my work
On the ai line, the purple cars are the part a human had to clean up and correct
<esc>:q!
Pouring one out for you now as a way of securing good karma
Do it, wus, you know you want to. Forget the tests, they always fail anyway.
Doors with too many doorknobs (none of which work to open the door)
Yep, I believe you’re right
‘a’ + +
This part is the same as writing 'a'++
and that returns “NaN” (short for “not a number”) since you can’t increment a character, but this return type is a string, so the interpreter just concatenates it with the other letters: baNaNa
. Then that string is converted to lower case to give the final result, “banana”.
Precisely. This exact situation from the comic would happen in Java, too, except it complains when you subtract an int from a string. JavaScript was merely designed to minimize errors (since a web browser takes the place of the compiler, and random strangers visiting your site shouldn’t get interpretation errors) so instead of throwing up it just does its best at interpreting what you meant.
Put a garage on the roof pointing sideways
+
is overloaded for string concatenation, but -
isn’t so the interpreter coerces the “11” into a number first.
They should have stopped with the original one. None of the follow-ups were as good as the first. It’s just been a decrescendo in story writing ever since.
And if you’re working from a secure compartmentalized environment or are working on a high security project that doesn’t let you pull libraries from outside. Lots of reasons for being able to roll your own. Besides the fact that it takes like two minutes to write it correctly.
And if you’re in a language that doesn’t implement it
Don’t forget the ' OR '1'='1' --
OP is an average enjoyer
Zelda does a good job of this. You don’t usually “miss out” on the lore, because they tend to explain a bit as things go on. Sure, you’d miss the easter eggs placed in the game for fans of older titles, but you also wouldn’t know any different. For example, in Breath of the Wild, a dilapidated farm is present in the main field, and this is a reference to the farm in Ocarina of Time where you find Epona, your horse. If you didn’t play that earlier game, it would just seem like scenery to you. But you wouldn’t actually miss out on anything. So the makers of the Zelda titles do a good job striking a balance between providing nods to earlier titles while also being welcoming to new players.