I'm a Systems Reliability and DevOps engineer for Netdata Inc. When not working, I enjoy studying linguistics and history, playing video games, and cooking all kinds of international cuisine.
My personal favorite was a function I came across almost a decade ago now named what_is_this_for() which, when passed a function that was a method of a class would return either the name of the class it was a method of, or "I have no idea!" if it couldn't find the class the method belonged to.
I don't remember anything else about the code base I saw it in (I can't even remember what language it was written in), but the sheer silliness of both needing a function that does that, and using that name for it (and that return value on a lookup failure) has always stuck with me.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My personal favorite was a function I came across almost a decade ago now named
what_is_this_for()
which, when passed a function that was a method of a class would return either the name of the class it was a method of, or"I have no idea!"
if it couldn't find the class the method belonged to.I don't remember anything else about the code base I saw it in (I can't even remember what language it was written in), but the sheer silliness of both needing a function that does that, and using that name for it (and that return value on a lookup failure) has always stuck with me.