Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We all know “The quick brown fox jumps over the lazy dog” used as benchmark for printing and fonts.

I wonder if there is a similar “Lazy Dog” for Programming Languages.

There are so many different programming languages, with all kinds of features and syntaxs, similar or different. The problem is: the user will be confused when using different languages at the same time.

Although plenty of differences between different languages, there must be something in common, i.e. a task or routine. If we implement the same task in different languages, and try to cover most frequently used features, then the language learning or comparison will become much more easy.

This kind of programme doesn't need to be very long, just like a tutorial but be common and abstract enough. Does it exist?

share|improve this question
Hello World? – Dan Pichelman Jun 20 '13 at 19:13
@Dan, to be fair, printing is a little trivial. – Sean Allred Jun 20 '13 at 19:17
Any single short program would have to gloss over 90% of the language features. A large suite of programs may be more appropriate - and that exists at – delnan Jun 20 '13 at 19:22
@delnan, you should make that an answer. – Karl Bielefeldt Jun 20 '13 at 19:53
@KarlBielefeldt Done. – delnan Jun 20 '13 at 20:04
up vote 12 down vote accepted

Any single short program would have to gloss over 90% of the language features. Most programming languages are large enough that even a half hour talk can only highlight the key distinguishing characteristics. A suite of small-ish programs is more appropriate for exposition and comparison. Rosetta Code is precisely that: A large number of problems are described, and idiomatic solutions in numerous languages are contributed (it's a wiki).

share|improve this answer
Rosetta code is a great site – Martin Wang Jun 21 '13 at 0:02
Thanks for the heads up, I hadn't even known about this! – Michael Brown Jun 21 '13 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.