'Hello, world': Programming languages quiz
Name that language: 20 'Hello, world' programs to test your polyglot programming mettleBy Neil McAllister
How good are you at languages? Polyglot programmers are all the rage, but you'd be a versatile coder indeed if you were fluent in every language in the modern developer's toolbox. Yet you don't have to be a wizard in every language to be able to tell which is which. We've assembled examples of the simplest program of all -- "Hello, world" -- for 20 different programming languages. See how many code snippets you can match with the languages they were written in.
Note that none of these examples is necessarily the only way to write a "Hello, world" program in a specific language, or even the best way. We've often included some extra lines of code, such as function definitions and comments, where it can help you distinguish one language from others that have a similar syntax. Watch for telltale clues!