DEV Community

Discussion on: Trivia #1: Who cursed us with 'foo bar'?

Collapse
 
axelledrouge profile image
AxelleDRouge

I would never name my function toto, but when I must use dozens of console.log then it will be console.log("toto") ou console.log("coucou") "coucou" being "hello" in a familiar french.
And yeah I don't like foo and bar either. They confuse me more than anything else

Collapse
 
sylwiavargas profile image
Sylwia Vargas

Totally! I’m a huge advocate of naming your functions, objects and variables descriptively :)

Collapse
 
axelledrouge profile image
AxelleDRouge

Like many of us. How many articles on naming is there on dev.to ? probably a lot!
Which is why foo and bar should be banned. Good practices on naming right from the start and everywhere

Thread Thread
 
sylwiavargas profile image
Sylwia Vargas

I grew very frustrated recently with a documentation where they used “foo bar” a lot and started wondering where these nonsensical words came from 😓 maybe we should write an extension that replaces metasyntactic variables with ones that have some logical relationship to each other ¯_(ツ)_/¯