There’s No “R” in “Funny” But There’s Some “Funny” in “R”
In the spirit of Friday I wanted to dedicate my first blog entry to a lighter side of R. In the middle of working on last week’s homework assignment, I decided I wanted to gain a new perspective on the human aspect of R, namely some assessment of the programmers that develop and use it. Naturally, rather than beginning with searches like “developers of R” or “famous users of R” or some other intellectually-minded search, I chose to pursue “funny R code.”
My search led me to a Stack Overflow questions page entitled “What is the best comment in source code you have ever encountered?” While the page had been “closed as not constructive” way back in 2011, the feedback to this question was nothing short of marvelous. The 518 answers stretched on for 18 pages, and while the quality and appropriateness of the comments varied somewhat, overall this forum was a goldmine of R-related comic relief. Many of the answers are quite relatable, even for someone as new to R as myself, including “I am not sure if we need this, but too scared to delete” and “I am not sure why this works, but it fixes the problem.” There were also a number of references to movies and TV shows as well as some truly incredible artwork, including pictures of pigs and dragons drawn with text/code. In fact, based on this particular sample, a relatively high number of programmers who work with R seem to be obsessed with dragons relative to the general population, although more analysis would be required to examine the validity of this possible trend. Several other types of comments included short essays, philosophical quotes, and poems that convey a multitude of emotions and somehow help R code seem more human.
If I were forced to pick a favorite comment, it would have to be the one written by a frustrated programmer who had been attempting to work with something called Adobe PSD format. While I have absolutely no idea what this format is, the author seems incredibly displeased with it, and channels his feelings into a highly amusing essay, which includes what is possibly the most imaginative simile I’ve ever heard, that he chose to save within his code and thereby share with the next programmer to examine it. It’s pretty long, so I won’t post it here, but it’s about three quarters of the way down the first page and is definitely worth a read (link below). All in all, if you’re looking for some quick stress relief and/or some R-related laughs, I would definitely recommend visiting the webpage listed below. (Since this page is essentially an Internet comments section, please be aware that some of the content is R-rated. Pun intended.) Finally, to send off the week, here’s an awful joke: What was the pirate’s favorite programming language? R.