Perhaps these shouldnât be called Easter Eggs - âprogramming noveltiesâ? - but the little additions in projects which donât necessarily need to exist are always satisfying and amusing to me. There are a number of them that my colleagues or I have stumbled upon. Hereâs a little collection I curated.
The headers link to where the code exists in its project. Have any additions? Let me know and Iâll add them to the list!
The âforty_twoâ array accessor in Rails
The ââšâŻÂ°âĄÂ°â©âŻïž”â»ââ»â method in Sidekiq
Iâm pretty certain this one is my favorite.
The âwtf!?!?â method in Pry
ânyan-catâ, âget-nakedâ, and poems in Pry
From Enrico Genauck (@enricogenauck), Added 5/4/15
The pry
gem also includes a dedicated file to Easter Eggs with nyan cat
and a few text snippets from Jermaine Stewart, T.S. Eliot, and Leonard Cohen,
and Fernando Pessoa.
The âisUserAMonkeyâ function in the android.app.ActivityManager package
From Ian Ehlert (@ehlertij)
Iâm not sure if this is all that strange considering the Monkey is a well documented, actual command line tool to stress test your UI. But thatâs part of the much larger joke.
The âI_AM_THE_DESTROYER!â method in Paranoia (acts_as_paranoid rewrite)
From Jason Frey (@Fryguy9)
The TODO is probably the funniest part, to be honest XD
Honorable Mentions
The âfortnightâ method in Rails
I donât know if it was really intended to be a novelty or taken seriously, but I find it amusing. And yes, I do actually try and use this - in tests, anyway.
The âseppukuâ command in RVM
Wayne Seguin added this as an alias for implode
. The change reads âAdded ârvm seppukuâ in honor
of tsykoduk who canât spell so it saved his life.â
I especially enjoy the rvm_log "Hai! Removing $rvm_path"
The âquestionâ and âanswerâ commands in RVM
These commands seemed to have been removed since they were added in v0.1.30
More entertaining is the bugfix for these commands that shortly followed:
Bugfix: ârvm answerâ now uses perl, since the universe is written in Perl. As it is obvious⊠the universe has bugs, and perl is the only language that can have bugs not even god could sort out.