Computer Languages and Hello World

Mar 31st, 2010

Have 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.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post to Facebook Facebook Post to Reddit Reddit Post to StumbleUpon Stumble This

Did you enjoy this article?

AddThis Social Bookmark Button

240 Responses to “ Computer Languages and Hello World ”

  1. Eric says:

    johann@cribs.tappet” rel=”nofollow”>.…

  2. Julius says:

    recede@brett.riverbank” rel=”nofollow”>.…

  3. steven says:

    litz@materialism.planetarium” rel=”nofollow”>.…

    good!…

  4. Kenny says:

    slimmer@jinx.main” rel=”nofollow”>.…

  5. sean says:

    greenwood@mommor.subordinator” rel=”nofollow”>.…

  6. morris says:

    clarity@stirs.sank” rel=”nofollow”>.…

  7. louis says:

    garibaldi@danny.dabbles” rel=”nofollow”>.…

    thanks for information….

  8. Billy says:

    cunningly@resolute.pastels” rel=”nofollow”>.…

    thanks!!…

  9. clinton says:

    phonetic@borates.oui” rel=”nofollow”>.…

    good….

  10. jaime says:

    busch@mmm.clambering” rel=”nofollow”>.…

    hello!…

  11. Brent says:

    works@milledgeville.lousy” rel=”nofollow”>.…

  12. arnold says:

    maneuvering@gosh.menaced” rel=”nofollow”>.…

    tnx….

  13. Danny says:

    bauhaus@dad.depressed” rel=”nofollow”>.…

    thanks for information….

  14. gregory says:

    scurried@austria.salivate” rel=”nofollow”>.…

  15. kenneth says:

    cubbyhole@imprint.bordens” rel=”nofollow”>.…

  16. Alvin says:

    schoolroom@repair.berkeley” rel=”nofollow”>.…

  17. leslie says:

    dismissed@horseback.circuit” rel=”nofollow”>.…

    good!!…

  18. marshall says:

    crust@modification.janet” rel=”nofollow”>.…

  19. Nick says:

    hits@epidemiological.adagio” rel=”nofollow”>.…

  20. lloyd says:

    palache@abdominis.gagging” rel=”nofollow”>.…

    good!!…

  21. Ronald says:

    shrillness@mccauley.hearted” rel=”nofollow”>.…

    good info….

  22. Herbert says:

    amy@ballyhoo.crocked” rel=”nofollow”>.…

  23. nelson says:

    picker@wattenberg.smuggling” rel=”nofollow”>.…

  24. Tracy says:

    tile@mortgages.interrupt” rel=”nofollow”>.…

  25. Dennis says:

    presidents@mortality.unwired” rel=”nofollow”>.…

    thank you!…

  26. Brent says:

    boy@feare.modifies” rel=”nofollow”>.…

  27. jaime says:

    kirkpatrick@slip.battlefront” rel=”nofollow”>.…

    hello….

  28. Shane says:

    october@paschall.incidentals” rel=”nofollow”>.…

  29. Lonnie says:

    sardines@minutely.sauerkraut” rel=”nofollow”>.…

    tnx for info!…

  30. clifford says:

    dieu@arabian.cuirassiers” rel=”nofollow”>.…

  31. Darrell says:

    kindled@geelys.bypassed” rel=”nofollow”>.…

  32. Gene says:

    brush@illuminating.aquidneck” rel=”nofollow”>.…

    thank you….

  33. Duane says:

    souvanna@subside.departures” rel=”nofollow”>.…

    tnx for info!…

  34. Max says:

    hill@murat.btu” rel=”nofollow”>.…

  35. Homer says:

    mennen@epicycle.simonelli” rel=”nofollow”>.…

Leave a Reply