There are hundreds of programming languages, most of which you and I have never heard of. Why are there so many? One reason may be that it’s fun to develop your own language. Who doesn’t have a set of secret code words they use with a few special friends? Some of you may have developed an entire language of words you use with just your closest friends or family. Lewis Carroll’s classic poem “Jabberwocky” seems merely to have been an opportunity for him to use his own special made-up language. And who can forget that “Charlie the Unicorn” episode with the magical poisonous Foogoo fish? Foogoo? Really?
We humans love to make up words. Remember George W. Bush? Some of you voted for him. Twice. My point exactly.
I had to use one of those languages nobody uses, Delphi, for a long time. Actually, I should take that back. Delphi is a great language in the same way that Pascal is a great language: it is extremely readable, well-organized, and flexible. However, it seems that the only people who use it are those named Dmitri, Vladimir, Marco, or Sven. When I worked fulltime for a software development firm that had written all its code in Delphi because its founder was a Pascal phenom, it was so difficult to find answers to problems we’d experience in writing our code. Most of the discussion posts and newsgroups were written in an Eastern European language, and so it was impossible for us to get help. No matter how good a language may be in its design or functionality, if there isn’t a dependable, worldwide group of users who can support it and provide fellow programmers advice and answers, it won’t be long for this world.
That’s enough editorializing on my part. My primary reason for this post is to present a very entertaining demonstration of writing the classic “Hello World” program in 300 different programming languages. Some of the solutions involve a single line of code. These are what I’d call elegant, because my definition of elegance, like that of most other programmers I know, is that it can accomplish a lot with very little code. Others require an unbelievable amount of code to accomplish this simple task of greeting the world. These are like the pastor of my church, who needs 20 minutes to tell me Jesus loves me. They are not elegant; they’re verbose and hard to follow and very inefficient in accomplishing their task.
Come to think of it, that might not be too unlike some of my blog posts. Self-deprecation can be elegant, too, particularly if I can mock myself in just a few words. As GWB would say, “mission accomplished.”