Monday, May 5, 2008

Hello World in 366 Languages - A Programmers Approach

"Hello World" is the first program one usually writes when learning a new programming language. The first Hello World program appeared in chapter 1.1 of the first edition of Kernighan & Ritchie's original book about C, "The C Programming Language", in 1978 and read like this:

main() {
printf("hello, world\n");
}
Since then, Hello World has been implemented in just about every programming language on the planet. This collection includes 366 Hello World programs in many more-or-less well known programming languages, plus 58 human languages.

The programs in this collection are intended to be as minimal as possible in the respective language. They are meant to demonstrate how to output Hello World as simply as possible, not to show off language features. For a collection of programs that tell more about what programming in the languages actually is like, have a look at the 99 Bottles of Beer collection.


Read on for yourself

No comments: