Rosetta Code: solutions to the same task in many languages
rosettacode.org
rosettacode.org
- control flow
- strings
- arrays
- standard input/output (when adding/editing and printing)
- file IO
- using modules
- reading command line parameters
- output formatting
- editing and running programs (this is important)
All that in very few lines with very simple logic. And then there's the challenge to minimize it. The smallest I have seen is 6 lines of python, less than 270 characters total. To do this you must abuse the language, and it requires a deeper understanding of what's going on behind the curtains.It doesn't take more than a day, and from there you can dive into more abstract concepts with much more fluency.
I actually hosted the site off my SliceHost account for a bit, and tried to write a new skin for it that didn't look like MediaWiki. Looks like this is inaccurate, but it's funny to see the languages bit from 3 years ago for me: http://rosettacode.org/wiki/User:Qrush
For me, it's also been useful for finding new languages. Scrolling around, you occasionally see a language with a particularly clever or readable (or just quirky) solution, and you can bounce around the wiki to see what other examples in the language look like.
http://99-bottles-of-beer.net/ is also a great page for browsing languages. Of course, it's a bit more whimsical and the focus is on a single problem (a good one, though: it covers conditionals, looping and I/O), but it covers a large number of languages and is easy to browse.
However, if you don't want to write the boilerplate, task suggestions are welcome: http://rosettacode.org/wiki/Rosetta_Code:Village_Pump/Sugges...
I don't know how effective a suggestion is, but my bet is that the interesting ones are processed quickly. I've been visiting the site and it has grown very rapidly, owing in no small part to all the work shortcircuit does.
Please note that folks at Rosetta Stone are pretty aggressive on copyright matter, watch out!
But Rosetta stone named themselves after the Rosetta Stone which is an ancient translation tool, for them to then turn around and try to protect that as if it was their copyright is just mind boggling (to me, anyway).