Hacker News new | ask | show | jobs
by Cyph0n 4128 days ago
If we're talking about the modern purpose of a "Hello, world!" program, then I agree. However, at the time the idea was originated, and I'm sure for a good time afterwards, build processes and frameworks weren't as mainstream as they are today. Therefore the function of a "Hello, world!" program was simply to test out the basic features of the language. That's the way I see it.
2 comments

The idea of the “hello world” program was promulgated by Kernighan and Ritchie in “The C Programming Language”, and they saw it the way kylec does. Quoting “The C Programming Language, Second Edition”:

“This is the big hurdle; to leap over it you have to be able to create the program text somewhere, compile it successfully, load it, run it, and find out where your output went. With these mechanical details mastered, everything else is comparatively easy.”

(I got rid of my first edition years ago but as I recall it described the purpose of the program pretty much the same way.)

Thanks for the reference.
It doesn't take modern build processes and frameworks to need to know that you've crafted the bare essentials for a running problem, and the multi-stage compilations and linking process has performed as expected. Or that your cross-compile is working. Building software has been complex enough to warrant this for many decades.