We all know foo, bar, and baz. But when I see people actually needing a placeholder name for a function or variable... I’ve often seen other placeholders.
Mine are: coxinha, coisa, test.
“test“ you probably understand.
“coisa” is ‘thing‘ in portuguese.
“coxinha” can be translated as “little thigh”, but it’s actually a fried snack. (the cover image!)
From what I saw, each one has one... so what’s yours?
Oldest comments (41)
"hello", "goodbye", "magoo"
ok, but is it like jane_doe, jane-doe, janeDoe or you're working with a language that lets you "jane doe"?
tester()
,shenanigans()
and sometimes justbob()
I've used my fair share of "shenanigans" also
I've definitely had my fair share of bobs(Is that the plural form?)
bleh
this one is kinda funny tho xD
It's a no brainer to me, I just use
const a = whatever
then comesb
thenc
... 😅actually very smart 🤔
This way I can get 26 letters and then start using numbers like
const a0, a1, a2
... 😂Usually I don't need more than a
c
but wellcan't go wrong with the classics
I use "test" for everything.
let test
,function test()
, etc.I’ve honestly sat for way too long trying to think of a test variable or function name that I finally just typed out gibberish and used that.
I always use "lul" and if this is already used I use "lulul" and so on. (Not very smart, I do not recommend, it just kind of works for me)
as long as you don't commit it...
"aux" as in auxiliary, or some random letter. In the past I didn't kept them as placeholders but as actual variable names. Eventually I came back to some few months old code and had to deal with something like:
Oh I thought this was gonna be about placeholder names for when public Wi-Fi hotspots ask way too many personal questions to use their network. In which case, I'm namey.mcnameson@onlyfans.gov, pleased to make your acquaintance.
To test address fields: Testy Testerson, 123 Any Street, Townsville, Country. (123) 456 7890, test@test.com
To test inputs, I usually just write "help", hahaha.
I tend to use sitcom characters, particularly from The IT Crowd.
Anything that's related to the function.
For variables, they are called metasyntactic variables. Placeholder variables. There is a wikipedia entry with lots of them. And an entry in the catb.org hacker's dictionary.
Mine is usually "asdf", and for longer text stuff, I use "Lorem Ipsum dolor sit amet this text goes on forever and its end is never met"
Dinosaur or banana. No idea why.