Building a Programmer's Rosetta Stone 215
Did you ever run into the problem where you knew how to do something in one programming language, but really needed to do it in another? That's what Rosetta Code is all about. A variety of programming tasks are solved using as many languages as possible. You can examine existing tasks, or create your own.
Re:I don't know about firehosing it (Score:3, Informative)
if you like this... (Score:4, Informative)
Re:if you like this... (Score:2, Informative)
Been Done (Score:3, Informative)
It's already been done. Planet Source Code [planetsourcecode.com] does this already, and it's been around for ages. You can find code examples and complete projects.
Then for projects in the .NET set there are a number of online translators that do C#VB.NET. Very good for moving code between different types of projects.
Now, something that would be truely useful would be a service that would do translations from a wider variety languages.
Re:No Fair! (Score:5, Informative)
Re:Been Done (Score:2, Informative)
Re:Erm... (Score:3, Informative)
Re:minus 4, T8oll) (Score:2, Informative)
Pointless, don't bother! (Score:3, Informative)
Might be worth posting somewhere once there's actual useful content, but just not now.
But then again, I'm sure the editors didn't even look at it either before posting. There's nothing news worthy or interesting there - yet.
Re:Usage (Score:3, Informative)
Rosetta Code takes the concept behind Hello World, and spreads it to other tasks.
Re:Been Done (Score:4, Informative)
The quality of the writing itself is pretty bad, too. People who are purporting to teach you something ought to be a bit more... well... literate.
Neither am I inclined to be overly impressed when a site throws 175+ JavaScript and CSS errors in Firefox in just the first 2-3 pages. (I didn't bother counting the errors after that point.)
In a more focused form (Score:4, Informative)
http://pleac.sourceforge.net/ [sourceforge.net]
Re:if you like this... (Score:4, Informative)
Re:Nice idea, but (Score:3, Informative)
Why?
Your C-language for-loop example uses the same crappy example as nearly every crappy text of the "learn C in 7 days [assuming you already know BASIC)" genre. Giving the first example this way --- as "a for-loop is something that counts, here's how you make it count" is
A for loop in C is simply the exact, beautiful, expression of the iteration concept: See? Has nothing to do with numbers.
You're saying: execute LOOP_INITIALIZER, evaluate LOOP_INVARIANT, if it's true, perform EXPERSSION, evaluate PROPELLER and go back to the part of this sentence where we evaluated LOOP_INVARIANT.
Because of this craputidinous teaching, I am constantly faced with programmers who cannot understand a loops of these types: ...and these people have freakin' degrees in computer science. That final (contrived) example, BTW, is a fine way to avoid doing stupid shit like .... So: Why is the for-loop superior in every way to this while loop example?
Look carefully.
Loop control in the for statement is on the same line of code as the loop-construct keyword. In the above while-statement, loop control is at the beginning, middle, and end of the block. That's just BEGGING for a maintainer error. Yet 99 out of 100 C programmers prefer the second form... because it looks more like BASIC... they don't understand the beauty of the for-loop... they simply think ("Oh, I don't have any numbers to count, so I'd better use a while-loop"). That's CRAP! It's broken thinking, and it encourages buggy programs.
It all comes down to people teaching to the lowest common example [denominator], rather than actually exploring the concepts behind the language.
Re:It may prove useful. (Score:2, Informative)
In short, our Tables of Contents are automatically updated for us by the wiki engine. It's cool.
While you wait (Score:2, Informative)
PLEAC (Score:2, Informative)
Many languages are close to complete the provided examples.