Jokes and Humour in the Public Android API
61 comments
·June 16, 2025uncircle
public static final String DISALLOW_FUN
The default value is false. [...] Type: Boolean [...] Constant Value: "no_fun" Source: https://developer.android.com/reference/android/os/UserManag...
---
How the hell did this pass code review? Are booleans strings on Android?
londons_explore
Notice how pretty much none of these are added in the last 10 years?
Android's become 'more mature' - ie. Boring, and the joke to code ratio is dropping rapidly.
aaronbrethorst
Good, I hate ‘funny’ code. Just get to the point, I’m not here for someone’s notionally hilarious inside joke from 18 years ago.
girvo
Ah I see you're one of those who would enable `UserManager.DISALLOW_FUN`!
I personally quite enjoy a bit of whimsy in code. What we do (mostly) isn't that serious (modulo those, including me once upon a time, who work on literal life and death software)
jrockway
I agree with you. The dinosaur game in Chrome is the classic example; turned off because schools threatened to not buy Chromebooks if kids could play a game in the browser. At least it seems to be a setting now, so your individual locality can decide if fun is allowed.
nlnn
I don't mind either personally, but I've had a few occasions where such things have caused issues with engineers that didn't have English as a 1st language.
A fair bit of time was wasted on trying to understand some joke/pun code and variable names, and on another occasion, spending the best part of a day working on something because they took some sarcasm in code/comments literally.
ramon156
Live a little. When you've passed away, was all the seriousness paid off?
That said, funny code should still work
magospietato
There's a middle ground for sure. I've left a few witty comments and loglines in my time.
But I've also had to debug a Delphi unit which returned error codes inspired by the magical supercomputer Hex from the Discworld novels.
"Divide by cucumber error" is not a decent enough representation of a module's internal state, no matter how funny you think you are.
wiseowise
Who cares what happens after you’ve passed away. You’re dead.
anal_reactor
I've noticed that modern life is in general less fun than it was 10 years ago. It might be me getting older, but I'm sure there are bigger societal changes too. BTW I used to browse tcrf.net and it was so interesting that video game developers would leave pieces of themselves in their work. Love letters, old memes, angry letters, random shit, whatever. Meanwhile modern programming is all about pRoFeSsIoAnALisM and MaXiMiZiNg PrOdUcTiViTy at all costs.
NewsaHackO
Yes, it like a rite of passage from a startup to “mature” company. It’s like Google’s or Reddit’s April Fools jokes. Actually, the novelty of April fools jokes can probably be a KPI of how corporatized a company is.
Sebb767
> BTW I used to browse tcrf.net and it was so interesting that video game developers would leave pieces of themselves in their work. Love letters, old memes, angry letters, random shit, whatever.
This is quite dependent on the games you play. Modern games are becoming larger, which makes the project overall more serious and makes it harder to hide easter eggs. That being said, Indie games with small teams still contain a lot of fun and even AAAs can still contain some goodies.
saidinesh5
I think it really is up to us to make things as fun as we want to see... There may be more minefields as we grow old (Can a senior pull a harmless prank on newly joined juniors without coming off as mean/threatening?), but at the same time these little joke comments/commit messages, pranks etc.. are what brought people closer together in every place I worked at so far...
I mean what other choice do we really have? let the fun police win?
Aransentin
For X11, from the top of my head:
The global variable that toggles a bunch of legacy cruft is called "party_like_its_1989": https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/di...
The changelog for the DRI2 extension is "Awesomeness!", "True excellence", "Enlightenment attained" etc: https://www.x.org/releases/X11R7.7/doc/dri2proto/dri2proto.t...
agildehaus
Reminds me of BeOS (and now Haiku), which have "is_computer_on()" and "is_computer_on_fire()" both with great descriptions.
https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_Sys...
vintagedave
Reminds me of Delphi -- it has an exception 'EProgrammerNotFound'.
https://docwiki.embarcadero.com/Libraries/Athens/en/System.S...
With a completely serious (though short) documentation page I read as very, very dry humour.
throw74848484
I know it is trying to be funny. But those states are quite normal in modern computer with advanced power management. OS should handle wakeups from deep sleep, or state where temperature of motherboard is 200 celsius.
mordae
Unlikely. Nothing is specced beyond 140 Celsius and many parts not beyond 80.
yomimiva
For the curious minds: https://github.com/haiku/haiku/blob/master/src/system/libroo...
TrianguloY
If you want to test the isUserAGoat and isUserAMonkey on you own device, I published this small app that does just that: https://play.google.com/store/apps/details?id=com.trianguloy...
Maybe I can add these other easter eggs...
mixermachine
On my device with Android 15 I can't install your app. Google enforces a minimum compielSdk now. Maybe you can upgrade it in your build :)?
bertil
The `<blink>` tag was an official part of early HTML standard, until teenagers showed up online and sanity prevailed. I suspect this could have been there to maintain compatibility with older webpages.
fredoralive
This blink is in a specific UI XML dialect, not HTML.
theletterf
This means jokes and humour in technical documentation. While it's often frowned upon, I love a bit of humour in docs. I wrote about this here:
lawgimenez
How isUserAMonkey API came about: https://books.google.nl/books?id=68BZEAAAQBAJ&pg=PA96&lpg=PA...
rompic
To ensure that the monkey of a monkey test (an emulated user doing random taps) cannot do all possible actions.
https://books.google.nl/books?id=68BZEAAAQBAJ&pg=PA96&lpg=PA... "Bruce grew the lab over the years from an initial set of seven devices to more
than 400. He said there were some unanticipated problems to resolve over that time. "One day I walked into the monkey lab to hear a voice say, '911-What's your emergency?" That situation resulted in Dianne adding a new function to the API, isUserAMonkey(), which is used to gate actions that monkeys shouldn't take during tests (including dialing the phone and resetting the device)."
fredoralive
Interestingly, the original Mac had a similar MonkeyLives flag: https://folklore.org/Monkey_Lives.html
gyomu
Is there anything similar in the public iOS API?
dylan604
How is someone writing an article about Android source code node nerdy enough to know what a Tricoder is? I don’t buy it
kretaceous
They are in their early 20s and not American¹. Why is that so hard to grasp?
dylan604
Funny, when I was in my 20s and not British, I knew what a Dalek was because it was just part of the zeitgeist. Tricoders are frequently mentioned as one of the life imitating art type of things that modern tech is striving to take from sci-fi to IRL. I had never even seen an episode of Dr Who, but I was familiar with it because of all the other sci-fi/nerdy stuff I was into. Ironically, I did know what someone wearing an H on their forehead meant from watching Red Dwarf, but that’s a tangent. It just seems like a strange Venn diagram where source code android and Star Trek tricoder do not intersect would be a very odd diagram
perching_aix
I think you hit the nail on the head there, you and the author are simply from different cultural zeitgeists. I also remember Star Trek and Dr Who being a big deal, but I was entirely too young to care. And I continue not to care, since I don't watch live action shows much. Never seen an episode of Friends or Game of Thrones either for example. Just a starkly different generation and subculture.
eCa
> the other sci-fi/nerdy stuff I was into
I guess that’s your answer. People have different interests and as such there’s a virtually unlimited number of culture combinations that people can be into. And people can have white spots in places that are surprising to others, there’s only so much time.
null
jaoane
It’s tricorder not tricoder.
sorenjan
I think you're underestimating how Americanized Swedes are.
CobrastanJorji
My fellow old person, Deep Space Nine came out 32 years ago. It's not something the nerds of today need to know. All these great sources of nerd allusions will be lost in time, like tears in rain.
Agentlien
While I found it surprising at first I don't think it should be. Star Trek really doesn't seem to be as big as it used to be.
justsomehnguy
> Star Trek really doesn't seem to be as big as it used to be.
Hint: it was never big outside of the USA. If anything, Internet and the Hollywood reboots is the way most people outside of the USA learnt about it.
Also try to find Europe in the article: https://en.wikipedia.org/wiki/Cultural_influence_of_Star_Tre...
olvy0
Adding to the comments: Not an American, but like others here watched TNG every day after school, and TOS before that. Many other people my age did, for example my wife.
BTW, we have watched with our sons all of TNG and DS9 for the last 3 years, and our eldest is now deeply familiar with Star Trek as a result. Very few of his peers are familiar with it, though.
riffraff
Are you sure?
I'm Italian and we had Star Trek (all the films, all the shows, many of the books), and apparently the Star Trek Italian Club[0] was funded in 1982. I think Spock and Kirk were quite familiar to most people, and for sure as a nerd in the '00s everybody understood the joke of showing Bill Gates as a Borg on Slashdot.
[0] https://stic.it/
kriro
Very big in Germany imo. I came back from school and always watched back to back TNG and MacGyver. TNG and DS9 were big and aired nationally. My father grew up with Kirk & Spock and most people who were children in that generation and had access to a TV know the show, because there was not much else on TV. He's not a nerd at all :)
pavlov
That’s just not true.
Both TOS and TNG aired in various European countries.
Agentlien
I was never a big Star Trek fan, but here in Sweden growing up I watched episodes of The Next Generation, Voyager, and Deep Space Nine when they happened to be on. There definitely always seemed to be some Star Trek series running in a decent TV slot and everyone seemed aware of it - even if its popularity was eclipsed by that of Star Wars.
From friends and family in Belgium it seems it was somewhat bigger there.
t_mahmood
It was aired even in Bangladesh (a tiny country in Asia), and I just fell in love with TNG, and the line: "Space the final frontier ..."
lynx97
> Hint: it was never big outside of the USA.
Really? I must have grown up in an alternative universe. Star Trek TOS and TNG were aired on our local TV station in the 80s and 90s, IIRC even in the afternoon. I would be extremely surprised if I'd meet a 30+ person who grew up here (European country) and didn't know Star Trek.
bigstrat2003
Probably because it was dormant for a long time. And then when it was brought back, it was brought back by people who have no clue what made Star Trek good so it has largely sucked.
ben_w
With the benefit of hindsight, I'd say that impression is more because every series is very different. TOS and TAS may have been similar to TNG seasons 1 and 2, but TNG got more thoughtful as it went on; DS9 was a very different show to both TOS and TNG, with long-term continuity and changes (beyond casting) that stuck, and far more shades of grey and where outright evil came with a smile and a charismatic speech rather than being a puddle of psychic oil; VOY had almost no continuity, making it the polar opposite of DS9, but most of the characters were interesting enough for a space soap opera; ENT was derided by many when it came out, because all the main plot arcs made no sense and they kept introducing old fan favourites that didn't make sense contextually because series set in the show's future had yet to meet the Borg, the Ferengi, etc. And while I've never seen Prodigy, I'm aware that was trying for a very different approach to exploring the cannon and had its own story to tell.
And famously, only the even-numbered films are any good (which doesn't mean all even films are good, e.g. Nemesis).
In this light: DIS throwing away an interesting premise and then going nuts; PIC being three seasons of "why did the scriptwriters put the Borg everywhere, when the main story is androids vs. Romulans, Q, and warcrimes(*?) against changelings leading to changeling terrorism?"; and the very much more pew-pew-lasers action films of Kelvin**… none of this is particularly shocking.
What's nice (for people like me) is that SNW and LD are both well-written and thoughtful — but again, very different shows.
SNW feels like it is trying to be the best of TOS, TNG, and DS9, even if it does have a bit of fan service with insufficiently justified presence of Kirk (James, the other one is fine).
LD is very very silly, but it works for me — not as a canonical set of events (Mariner is even less suitable a personality for a ship officer than is Burnham, and in the same way I can head-cannon all Q episodes as "Q is actually Barclay on the holodeck having a power fantasy", most of the main four cast feel to me like students LARPing trek on a holodeck), but rather I like it because the tries to "yes, and…" the show's existing cannon in ways that mostly work and the characters are fundamentally decent to each other 95% of the time (and when not, justified).
* Perhaps "crimes against humanity" would be a closer take, or whatever the term should be in a not-just-humans universe
** and Section 31 whose critical response is so low that I forgot it existed rather than watch it, and only remembered the existence of when looking at Wikipedia to check if Nemesis was even or odd
la_oveja
im 30 yo and i didnt know what a tricoder was
kallistisoft
I'm sorry... please take this adorable tribble as a consolation!
DustinEgg
[dead]
readthenotes1
Right? It could be an attempt at humor, but it could also be someone who is naive of culture before 2003. I lost some respect for the author at that point...
I like that this sense of humor is still preserved in such a huge company code base. You won't notice it when you use the API, but when you look at the source code, these little Easter eggs will remind you that there are real people behind the code. Compared with the cold feeling of many software nowadays, this contrast makes people feel warm. Honestly, maybe we need more of this.