DEV Community

loading...

Discussion on: Do you leave jokes in your code? If so, please share!

Collapse
cjbrooks12 profile image
Casey Brooks

I also love the little gems hidden in the Android codebase

Collapse
qm3ster profile image
Mihail Malo

What do the latter two actually do?

Collapse
cjbrooks12 profile image
Casey Brooks

isUserAMonkey() is actually part of a testing utility. A "monkey" user does a bunch of random clicks and stuff trying to detect strange UI states.

The last one was just a joke, but it does check if GoatSimulator is installed