Hacker News new | ask | show | jobs
by dvh 1185 days ago
I made this compiler joke and received whoping 930 upvotes for it: https://i.redd.it/dp6ixt4ri1hz.png
3 comments

Ha! It actually took me far too long to get it!
Why is it funny, please explain?
It is the error message you often get when creating a password.
Yes I get that, didn't quite understand why this switching of error message is relevant to the code...
Jokes often work with subverting expectations. In this case you're surprised by a message that doesn't belong and then you remember where it comes from and likely relate it with how frustrating those ever changing rules can be.

That's why the joke works.

I thought it was funny because I've seen similar complaints from linters, e.g. clang-tidy's readability-identifier-length plus readability-identifier-naming, or pylint's invalid-name. (clang-tidy at least is smart enough to exempt loop counters.)
LOL. Loved it