Seems there are a lot of programming language comparison sites out there. Here's another one: Programming-Idioms. The site is covered by a Creative Commons license.
Over 30 languages are represented with example algorithms starting with (sigh) Hello World. COBOL currently has 1 entry. I should fix that.
There's a lot of good stuff in there in JavaScript, Scala, Python etc. For example, there's 'Format a Number with Grouped Thousands'.
Complete list of idioms -- almost 200 of them.
Top comments (1)
This is great !