DEV Community

Cover image for What's the Craziest Variable or Function Name You've Encountered?
dev.to staff for The DEV Team

Posted on

What's the Craziest Variable or Function Name You've Encountered?

Have you ever stumbled upon an hilarious or quirky variable and function name? A clever pun, an inside joke, or a moment of pure coding creativity -- these little anomalies, hidden amidst lines of code, never fail to bring a smile to our faces. Share your funniest finds with the community.

Follow the DEVteam for more discussions and online camaraderie!

Image by pch.vector on Freepik

Top comments (11)

Collapse
 
jmfayard profile image
Jean-Michel 🕵🏻‍♂️ Fayard

When I was an intern at a big telecom company, there was one strange guy who wrote his function names in greek.

He wasn't greek either, but he wanted to teach greek to his son when he would grow up because there was some greek ancestry in the family.
He needed some practice with greek and found it at work.

I'm not sure if this was crazy or genius.
I'm not even sure it the limit between both is always clear.

Collapse
 
manchicken profile image
Mike Stemle

APL is a programming language which requires either a special terminal or terminal emulator, as it uses Greek graphemes as part of the language.

Collapse
 
mitch1009 profile image
Mitch Chimwemwe Chanza

Genius 🤣

Collapse
 
manchicken profile image
Mike Stemle

I have a habit for naming things descriptively, and since my typing speed is decent, I've named entire projects with pretty long names. I am the proud maintainer of an open source GitHub Action called datadog-service-catalog-metadata-provider. I've also been known to name things in frustration, such as a program I wrote once called "spit out stupid objects" or "soso" for short.

Collapse
 
jeremyf profile image
Jeremy Friesen

It's a tie between i and electronic_financial_transaction_vehicle. Where i meant interface and it was really unclear what that interface was.

electronic_financial_transaction_vehicle had a range of "electronic debit" or "credit card".

Collapse
 
wraith profile image
Jake Lundberg

came across a function named deleteOldPeople a few years ago. still makes me chuckle.

Collapse
 
philnash profile image
Phil Nash
Collapse
 
thumbone profile image
Bernd Wechner

A function argument called yeah_but_nah.

I think you'd have to be Australian to understand that this means essentially the same as an argument called dry_run which is a common command line argument on risky irreversible operations, that runs through the whole process without actual writing or committing any changes.

Collapse
 
mitch1009 profile image
Mitch Chimwemwe Chanza

static 'reading-pgs' = async () =>{}

Collapse
 
kenbellows profile image
Ken Bellows

I'll be honest... I never realized that string properties could be declared that way in javascript, with no square brackets or anything

const me = {
    'say hello'(name) {
        console.log('Hello', name)
    }
}
me['say hello']('Mitch')
// logs 'Hello Mitch'
Enter fullscreen mode Exit fullscreen mode
Collapse
 
hi_iam_chris profile image
Kristijan Pajtasev

I remember this guy at my first job, but office in other country, he would name variables after himself. Like John1, John2 ... (john wasn't his name :) )