This article has been reviewed according to Science X's editorial process and policies. Editors have highlighted the following attributes while ensuring the content's credibility:

fact-checked

preprint

trusted source

proofread

Hidden humor, the software developer's secret weapon

coder
Credit: Pixabay/CC0 Public Domain

Writing software code can be a painstaking and stressful process—and downright boring when the job is repetitive and you're doing it remotely, alone in front of your screen.

To liven things up, many developers and testers use humor to relieve the monotony and connect with their virtual colleagues by sharing a joke. Over time, it creates a bond with fellow developers, though the humor and creativity slipped in between the lines of code are invisible to the rest of us.

"Humor creates relationships between people who are physically distant and is a good way to stave off boredom," said Benoit Baudry, a professor in the Department of Computer Science and Operations Research at Université de Montréal. "It's a way to build engagement." Until recently, Baudry was at the Royal Institute of Technology in Stockholm, where he and his colleagues studied the special humor of developers.

"Developers are people who love software," said Baudry. "So they try to create emotional bonds using the that is their work tool."

But they have to exercise some caution about when and where they insert jokes and comments. They don't want any of their jests to end up on Instagram.

To find out more about how they do it, Baudry and his fellow researchers circulated an online questionnaire that was posted on developer sites. More than 125 developers from around the world responded. They reported using humor most frequently in test inputs and "commits," or changes to the code. A sly dialogue unfolds between the test lines.

The research was published in the Proceedings of the 46th International Conference on Software Engineering: Software Engineering in Society on June 6 and is also available on the arXiv preprint server.

Darth Vader, Luke et al

Baudry and his co-authors looked at Faker, a library that generates random data for use in testing code. Instead of lorem ipsum—a sequence of meaningless words commonly used as a placeholder for text on a page until it can be replaced by the real thing—developers will sprinkle their lines with cultural references such as allusions to Seinfeld or quotes from poets.

"Some references are fairly specific, others are universal: who doesn't know the characters from Star Wars or The Matrix?" said Baudry. Characters from cult films are frequently used in titles, as are quotations. An example from Faker: "The wise animal blends into its surroundings" (a quote from the movies Dune). Nothing edgy or inappropriate, just light-hearted asides through which developers signal their interests and elicit a smile from their colleagues.

"Personally, I like to use characters from the 1998 film The Big Lebowski in error messages," said Baudry. He is also enthusiastic about lolcommits, a utility that lets developers send a selfie when they make changes to code. "These pics foster bonds with colleagues and are a way to celebrate when the job is done," he said.

The pioneer who paved the way

The trailblazer for quips in code was the brilliant NASA engineer and computer scientist Margaret Hamilton, who led the team that designed the system for the Apollo 11 lunar landing program in 1969. When the code was made public, people could see that it was peppered with jokes, Shakespeare quotes and references to The Wizard of Oz.

Humor in code "helps keep it fun," one of the respondents to the survey commented. "I love it and think fondly of people writing that part of the code or comment."

Humor "makes a codebase feel more humanized, like it was created by a real person," another respondent said.

Naturally, there are limits to the kind of humor that can be injected into code. "It should not create a toxic or unwelcoming culture," cautioned one respondent.

Baudry's interest in tech humor is not new. Last year, he published a fascinating article on "Easter eggs," features hidden in software which can be unlocked by pressing a combination of keys or correctly positioning the pointer. But unlike code humor, Easter eggs can be discovered by the public, especially in video games.

Baudry also wants the users of technology to be more aware of the behind-the-scenes that produces the thousands of connections and apps that are woven into our lives. In the past, he has given talks on art and technology while projecting code onto giant screens in public places. For the love of code!

More information: Deepika Tiwari et al, With Great Humor Comes Great Developer Engagement, Proceedings of the 46th International Conference on Software Engineering: Software Engineering in Society (2024). DOI: 10.1145/3639475.3640099. On arXiv: DOI: 10.48550/arxiv.2312.01680

Journal information: arXiv
Citation: Hidden humor, the software developer's secret weapon (2024, June 21) retrieved 13 July 2024 from https://techxplore.com/news/2024-06-hidden-humor-software-secret-weapon.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.

Explore further

Humor can make you a better workplace leader, if you use it properly; here's how

14 shares

Feedback to editors