This Endless Frame

| Home | Data | Color | 3D | Notes | Chirps |

The Twilight of Foobar

One unexpected side effect of LLM's is what appears to be a drop in the prevalence of foobar related software examples.

I must confess I found the use of metasyntactic variables not entirely helpful.

You just paid cash for a printed book about C++ or finally tracked down a possibly relevant stackoverflow question about std::unique_ptr's and there it was : a foobar example.

You didn't necessarily have two problems but you would have to decide if you were going to spend the time to translate the foobar content.

Why couldn't people just provide a real world example of a language feature or software principle?

For example this foobar for C++ argument passing is :

void Foo(Fruit bar);
void Foo(Fruit* bar);
void Foo(const Fruit& bar);

Could just have easliy been an example of a price look-up code:

void PLUCode(Fruit f);
void PLUCode(Fruit* f);
void PLUCode(const Fruit& f);

But recently since I haven't asked for a foobar example - I haven't gotten any.

Not even a hallucinated one.

fleuron

As an aside the use of the terms Foo and Bar always seemed to me a bit off, given the historical context of the military term FUBAR.

I mean if I heard a lawyer use BOHICA to clarify a legal concept it woudln't inspire confidence.

Likewise for hearing a surgeon say "something something SNAFU" as you count backwards from ten.


2025-11-28
NMoroney