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?
Top comments (44)
It's a no brainer to me, I just use
const a = whatever
then comesb
thenc
... 😅can't go wrong with the classics
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 well"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:
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]
.tester()
,shenanigans()
and sometimes justbob()
I've definitely had my fair share of bobs(Is that the plural form?)
I've used my fair share of "shenanigans" also
my code is littered with
arb
. . . as in arbitrary. :-Dnot var names in any production code, mind you, but any arbitrary placeholder/token value for a str, especially in unit tests:
github.com/pypyr/pypyr/search?q=arb
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.
Alright +1 for the oogabooga
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.
"hello", "goodbye", "magoo"
I don't use placeholders for programming. variables, functions, classes should all be related to module I am working on. But for user-testing, db seeding, etc, I have habit of using existing information of frictional characters created by old writers.
Characters from edgar allen poe, enid blyton, james hadley chase, A lot of Cartoon characters from hanna-barbera shows, Harry Potter, gods from greek mythology, characters from Indian comics. I have a personal DB of fictional addresses, from all the above mention tv-shows, books and novels which I use to feed DB and test forms.
I use
derp
andsdg
so often that some of them have even made it to production. 💀Dinosaur or banana. No idea why.
BEEEEEEES!
There are many
a-z, dd,dddd (repeated letters), test, check, fuck(yeh i use that)
etc.bleh
this one is kinda funny tho xD