Re:Ask HN: Why “hello world” and “foo:bar”?
by nullish_signal on Wednesday December 14, 2022 @07:35PM
(#33993191)
Not sure about "Hello World!" besides being a cute phrase for new programs to say.
Foo Bar I would assume is from F.U.B.A.R., or F%&#ed Up Beyond All Repair. If so, then maybe 2 simple variables is all you can safely tweak?
No clue, really.
Re:Ask HN: Why “hello world” and “foo:bar”?
by floxy on Wednesday December 14, 2022 @07:43PM
(#33993268)
Pretty sure the "Hello, World" got its start from the first program used in "The C Programming Language" by Kernighan and Ritchie, back in 1978. I've always presumed the foo and bar come from FUBAR[0] which seems to have originated in WWII army lingo.
The first example from the most popular programming book in the world?
Foo Bar I would assume is from F.U.B.A.R., or F%&#ed Up Beyond All Repair. If so, then maybe 2 simple variables is all you can safely tweak? No clue, really.
Clearly explains = " ... FUBAR (`Fucked Up Beyond All Repair'), later modified to foobar".
[0] https://en.wiktionary.org/wiki/FUBAR