FILE_NOT_FOUND is from an old story on thedailywtf.com. Someone created a boolean enum with TRUE, FALSE and FILE_NOT_FOUND, if I recall correctly. It’s been a recurring running joke.
I see that they’ve gone back to the name “The Daily WTF”. For some time, they changed to “Worse than failure” in order to avoid not even the word “fuck”. 🤷
Ackshually three equal signs check for type as well. So mere truthiness is not enough. It has to be exactly true.
Also, everyone knows FILE_NOT_FOUND isn’t a string but a boolean value.
yeah, it’s funny how my brain collapsed the boolean check into
if (role)
rather thanif (role === true)
- that’s trickywhat is
FILE_NOT_FOUND
? I can’t find much on it …FILE_NOT_FOUND is from an old story on thedailywtf.com. Someone created a boolean enum with TRUE, FALSE and FILE_NOT_FOUND, if I recall correctly. It’s been a recurring running joke.
thank you for letting me in on the joke 😄
and for catching my error!
Welcome! I guess this is your Ten Thousand moment for a mediocre joke for old programmers. 💪👍
haha, yes - exactly! At least I got that reference, xkcd is pretty well known, though.
I see that they’ve gone back to the name “The Daily WTF”. For some time, they changed to “Worse than failure” in order to avoid not even the word “fuck”. 🤷
https://thedailywtf.com/