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 placeh...
For further actions, you may consider blocking this person and/or reporting abuse
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:
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
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]
.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
"hello", "goodbye", "magoo"
Alright +1 for the oogabooga
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.
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.
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.
There are many
a-z, dd,dddd (repeated letters), test, check, fuck(yeh i use that)
etc.BEEEEEEES!
Dinosaur or banana. No idea why.
bleh
this one is kinda funny tho xD
I use "test" for everything.
let test
,function test()
, etc.I use
derp
andsdg
so often that some of them have even made it to production. 💀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.
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...
I use "hello" and if it's a string then "stringy". I always use Pandita Pan as a placeholder user too xD
I use 'dada', because of finger position
Fine choice sir, I tend to prefer ogabooga
Anything that's related to the function.
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.
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"
I keep it simple and stick with test.
"disstring" "disint" "al" "bl" . I have the funniest ways to name a var and a function
Maaaan the minute I saw that cover image my mouth started watering lol, I haven't had coxinha in ages!
Bobby Socks
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.
ok, but is it like jane_doe, jane-doe, janeDoe or you're working with a language that lets you "jane doe"?
hest -- Danish for horse
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.