Sign in
Log inSign up

Why do people use `foo`, `bar` in code examples?

Patricia's photo
Patricia
·Jan 2, 2017

I have seen many times, in code examples, people use the words foo and bar. Is there a story behind the usage of these; something like someone popular used them, and everybody started using them madly? 😄

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct