News for hackers. Stuff that matters.
Re:Ask HN: Why “hello world” and “foo:bar”? by xen2xen1 on Wednesday December 14, 2022 @07:40PM (#33993235)
I thought "Hello World" was the first example in the K&R C manual?
Re:Ask HN: Why “hello world” and “foo:bar”? by xen2xen1 on Wednesday December 14, 2022 @07:41PM (#33993253)
https://riptutorial.com/c/example/3675/original--hello--worl...

The first example from the most popular programming book in the world?

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 dragonwriter on Wednesday December 14, 2022 @07:42PM (#33993264)
Re:Ask HN: Why “hello world” and “foo:bar”? by absqueued on Wednesday December 14, 2022 @09:41PM (#33994421)
This is a gem :).

Clearly explains = " ... FUBAR (`Fucked Up Beyond All Repair'), later modified to foobar".

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.

[0] https://en.wiktionary.org/wiki/FUBAR

Re:Ask HN: Why “hello world” and “foo:bar”? by absqueued on Wednesday December 14, 2022 @09:37PM (#33994386)
In that sense, foobar, or fubar literally means "terrible"?
Re:Ask HN: Why “hello world” and “foo:bar”? by l3uwin on Thursday December 15, 2022 @12:31AM (#33995640)
Yes, if it's fucked up beyond all recognition, it's bad.