Computer Languages and Hello World
Mar 31st, 2010Have you ever wondered why Hello World seems to always be the first program that you learn in any computer programming language? Well, there are a lot of reasons why but here are a few quick ones:
- It’s as basic of a program as you can write, just echo some words back onto the screen.
- It’s a sanity check to make sure that the compiler actually is working properly
- It’s been a tradition since 1974
The History of Hello World
Small test programs that are simple to write have really been around since the development of the modern day computer. However, the first know usage of the phrase “Hello world!” in a programming tutorial came from the much revered book The C Programming Language by Brian Kernighan and Dennis Ritchie originally of Bell Laboratories. The book was first released in 1978. The example in the book prints “hello, world” without any capitalization or punctuation. Mr. Kernighan actually first used the simple “Hello world!” program in an internal memo that circulated around Bell Laboratories in 1974.
This is the version from the book:
int main()
{
printf("hello, world");
return 0;
}
Actually Mr. Kernighan was also responsible for the first usage of the words “hello” and “world” together in a computer instruction manual. This was his 1972 book titled Tutorial Introduction to the Language B.
This was the version that he used in the B language:
main( ) {
extrn a, b, c;
putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';
c 'orld';
So you can see that the traditions of using “Hello world!” in programming tutorials is now several decades old. So as you pick up a new programming language and start with the inevitable “Hello world!” remember Mr. Kernighan and whisper a quick thanks to the pioneers in the field of computer programming.
Delicious
Digg This
Facebook
Reddit
Stumble This

Buy:Zovirax.Nexium.Mega Hoodia.Human Growth Hormone.Retin-A.Prevacid.Synthroid.Arimidex.Prednisolone.100% Pure Okinawan Coral Calcium.Actos.Zyban.Petcam (Metacam) Oral Suspension.Lumigan.Valtrex.Accutane….
hello…
really good article. Ready to hear more next week,my blog http://talonmpgraham.blogdrive.com/archive/20.html Many Thanks….
hello…
really good article. Ready to hear more next week,my blog http://debbieqqq.onsugar.com/Adressing-Wedding-invites-Envelopes-17840597 Many Thanks….
really good article…
I have spent a bit of time going through your posts, more than I should have but I must say, its worth it! http://wedding071.i.ph/blogs/wedding071/ many Thanks….
hello…
Hello there just quality post! http://miranda.i.ph/ ,i had a great read.thank you for your article,My problem has been resolved….
very helpful…
I preferred to thank you for this good article. http://wsdxj.scoom.com/ I by all odds liked every little bit of it…
Great…
You did a great job! http://denese.canalblog.com/archives/2011/06/19/21433915.html...
Great…
You did a great job! http://cynthi.bloges.org/1308325293/...
Greate…
It’s such a great site! http://blogtext.org/aleshabyali/article/572388.html Great post, I just bookmarked it on Digg….
Great One…
I must say, its worth it! My link!http://shannon071.livejournal.com/802.html ,thanks haha…