3 ms·
This has been a cool resource, but its comparisons of tasks can be profoundly misleading to novices...not intentionally, just because novices don't know how to
by danso 13y ago
This has been a cool resource, but its comparisons of tasks can be profoundly misleading to novices...not intentionally, just because novices don't know how to really judge things. Take, for example, its section on Web scraping:
http://rosettacode.org/wiki/Web_scraping 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
- phazmatis 13y agoAs long as people go to that site with the intention to learn languages, and not learn the concepts involved, they'll quickly realize that like wikipedia, the quality of the submissions is sometimes lacking. In fact, a lot of pages have multiple versions of the same program, say, in ruby, with an imperative style and a functional style, or using different language features and degrees of idomatic...ness.