a programming language chrestomathy

About this Site

Help contribute nodes to a graph of programming language examples. Each node is a code snippet and arcs between nodes link snippets that do the same thing in different languages or in the same language.

So you can learn a less-familiar language by looking at how it compares with a language you know; or improve your programming idioms by comparing one snippet with another one written in the same language.

Want to see what code in language X would look like in language Y? Set up a bounty to encourage people familiar with both languages to answer.

Want to help programmers new to a language to write more idiomatic code? Suggest alternative implementations to their snippets in the same language.

Latest News

We've just started private beta. If you're interested in updates, make sure to follow us on twitter .

Apply for Private Beta

Enter your email address to apply for the private beta.