Rosetta Code
rosettacode.org
rosettacode.org
It actually works well with spoken languages: I've done that by buying the same book in my native language and a new one for which I know only the basics, with great success (and perseverance).
[1] http://en.wikipedia.org/wiki/James_Murray_(lexicographer) [2] http://en.wikipedia.org/wiki/Oxford_English_Dictionary
http://rosettacode.org/wiki/Web_scraping
First of all, web scraping is a complex task. Not just at the low-level code, but conceptually...web scraping means different things to different people and this shows up quite frequently even in HN discussions.
In any case, the Rosetta example does kind of the right thing by limiting it to a very simple operation...but even the operation itself is misleading (parsing HTML with regexes?). And even in this idealized operation, you have very different opinions on what it entails. The Ruby one looks correct to me, and it looks very concise compared to other languages, but only because, unlike the CoffeeScript example, there is no error handling.
The real problem is that when you're a beginner, you have no concept of how programming is best done in small steps...Web scraping is simply a chaining of much smaller steps, such as string manipulation, parsing, options setting, etc. It's not a "feature" of a language, yet if you were to make a judgment on Rosetta (and who else but a beginner would really use Rosetta to compare languages by webscraping), you're going to have an unhelpful perception of programming languages and programming in general.
That said, it's a great resource when the task is low-level and well-defined. But what that actually means obviously differs for people and languages. Hence, opinionated frameworks and the like
The thing I find most interesting about rosetta code, is not the quantity of languages, but the actual algorithms which are used. There are many great algorithms out there who can be done in very short bits of code, which are great for educational purposes.
Having different solutions implement different algorithms doesn't really help somebody just trying to get a sense of the language.