DEV Community

Cover image for What is 'foo' 'bar' REALLY?
OpenSource for Webcrumbs

Posted on

13 5 1

What is 'foo' 'bar' REALLY?

I decided to look it up.

So... during World War II, soldiers in the trenches and barracks faced really chaotic situations, for obvious reasons.

To cope, they developed their own slang, full of dark humor.

One term that became particularly popular was "FUBAR," which they used to describe situations that were completely and hopelessly messed up.

Alan Turing knew this term.

When he was leading the team at Bletchley Park to crack the German Enigma code, Turing and his colleagues often found incredibly annoying problems.

Whenever a machine malfunctioned or a code proved exceptionally difficult, they'd say it was "FUBAR."

This use of humor helped maintaining good climate in hard situations.

Years later, early computer scientists like Bob Bemer began using "foo" and "bar" as placeholders in their examples, unknowingly echoing Turing’s approach to make fun when under pressure.

And what does "FUBAR" really stand for?

The soldiers’ slang was much less sanitized:

"F**ked Up Beyond All Recognition."

So when we use foo and bar that's what we're referring to!

I didn't know it before today.

Did you?

Join me on Discord if you feel like!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (2)

Collapse
 
best_codes profile image
Best Codes

Hmm, I guess I won't be using that example anymore! 😅

I did not know. Thanks for writing!

Collapse
 
jennavisions profile image
Jenna

Never thought foo bar would have such history 😮😅

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs