DEV Community

Cover image for What’s your placeholder name?
Bruno Noriller
Bruno Noriller

Posted on • Originally published at linkedin.com

What’s your placeholder name?

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?


buy me a coffee

Latest comments (40)

Collapse
 
arnested profile image
Arne Jørgensen

hest -- Danish for horse

Collapse
 
panditapan profile image
Pandita

I use "hello" and if it's a string then "stringy". I always use Pandita Pan as a placeholder user too xD

Collapse
 
stephd profile image
DepSteph

I use 'dada', because of finger position

Collapse
 
clpsplug profile image
C. Plug

Some Japanese use "hoge" "fuga" "piyo" for placeholder names - though I hear they are dying out and learner sometimes misunderstand that these mean something.
I use them plus the foobar style placeholders; whichever to use is up to my feeling.

Collapse
 
dylanlacey profile image
Dylan Lacey

BEEEEEEES!

Collapse
 
flrichar profile image
Fred Richards

I try to make up funny words like zerk, zalg, blerp, blurg, any 4-5 letter which may sound like it does not belong and for some unknown reason I choose a lot of the letters a, b, x, z.

Collapse
 
joppedc profile image
JoppeDC

Even when debugging and testing, i use somewhat logical names.

‘function logUser(User $user)’

‘private string $tempLocale = “en”:’

Stuff like that. Sometimes these stay till the next day or after a weekend. and it helps me pick up where i left off without searching what they mean/do.

Collapse
 
auroratide profile image
Timothy Foster

I almost always use fruits and vegetables! Nearly universal, paints an image in the head, makes whiteboards colorful, etc. When testing things with arrays, you can create illustrative categories like const red = [apple, tomato].

Collapse
 
andrewbaisden profile image
Andrew Baisden

I keep it simple and stick with test.

Collapse
 
skylersaville profile image
Skyler Saville

Bobby Socks