DEV Community

loading...

Discussion on: What's the funniest variable/class/method name you've come across?

Collapse
ahferroin7 profile image
Austin S. Hemmelgarn

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.