Slashdot Log In
Building a Programmer's Rosetta Stone
Journal written by Short Circuit (52384) and posted by
CmdrTaco
on Sun Jan 21, 2007 11:09 AM
from the still-waiting-for-programmer's-tower-of-babel dept.
from the still-waiting-for-programmer's-tower-of-babel dept.
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.
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
No Fair! (Score:5, Insightful)
Re:No Fair! (Score:5, Informative)
Parent
Re:No Fair! (Score:5, Funny)
http://en.wikipedia.org/wiki/Malbolge_programming
I hope next windows ver will be coded in Malbolge and open source.
Parent
It may prove useful. (Score:4, Interesting)
Of course there are also cases when you will need to port the solution to a different language. This may be the cause when the project specifications requires a specific language like Ada.
As with all programming; your mileage may vary.
Re:It may prove useful. (Score:5, Insightful)
This site could be useful, but MediaWiki doesn't seem the best tool to use, and the content so far is rather sparse. I'm uncertain whether this will prove a success; it's an interesting concept, but many interesting concepts have fallen by the wayside.
Parent
Re:It may prove useful. (Score:5, Insightful)
Parent
Usage (Score:5, Insightful)
At any rate, I think this site has already encountered a problem which is only going to escalate as it grows: code isn't cross-indexed properly at all. For example, there are many "programming tasks" with solutions in C, but there is nothing on the C page. I think this problem stems from the fact they used MediaWiki.
MediaWiki's great for something like... well, Wikipedia. But it doesn't support a cross-referenced database like this. The wiki concept is good for this site, but the server needs to be running some software designed better to the task.
Re: (Score:3, Informative)
I'm not sure the right idea is to "know how to do something" in a particular language. If programmers are encouraged to learn algorithms specific to a particular language, how will they ever adapt once their pet language sinks? (By using an algorithm repository to re-learn rote code?)
Rosetta Code was largely inspired by a page on Wikipedia where the classic "Hello World" example was shown in a few hundred languages.
Rosetta Code takes the concept behind Hello World, and spreads it to other tasks.
At any rate, I think this site has already encountered a problem which is only going to escalate as it grows: code isn't cross-indexed properly at all. For example, there are many "programming tasks" with solutions in C, but there is nothing on the C page. I think this problem stems from the fact they used MediaWiki.
Actually, this is (almost) intentional. I want people to be able to learn about the languages they're using. I've been filling in the pages as I've had the opportunity. (I'm a full time college student, and president of a student organization.) Check the page on GCC, for example. [rosettacode.org]
MediaWiki's great for something like... well, Wikipedia. But it doesn't support a cross-referenced database like this. The wiki concept is good for this site, but the server needs to be running some software designed better to the task.
I'm open t
Re:Usage (Score:4, Insightful)
But this kind of thing should be very good for someone learning a new language - you know how to do it in one language, now you're looking it up in another one... like learning the most common phrases first when learning a natural language.
I hope this project will amount to something; it can be really useful.
Parent
if you like this... (Score:4, Informative)
Re:if you like this... (Score:4, Informative)
Parent
One task that isn't on there (Score:5, Funny)
Re: (Score:3, Funny)
Hooker::Transactional->get_last->rollback;
Dude, CPAN has EVERYTHING!
Should I be impressed? (Score:4, Insightful)
The site has absolutely no real content. There are only a couple of pages on the whole site. The most advanced thing found there is something along the lines of how to open a file with mIRC scripting [rosettacode.org] (no C/C++/Java) and that bash scripts (usually) start with #!/bin/bash [rosettacode.org]. Oh, please. Should I be impressed?
Re: (Score:3, Insightful)
The firehose will help with things like this.
I agree it was empty and its implimentation feels flawed, but it gives a baseline for thoughts other people may be having.
I know *I* have been thinking about this since I saw it and how it should/could be once filled.
It gets a thumbs up from me.
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: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.)
Parent
Will they support these programming styles ?!? (Score:3, Funny)
In a more focused form (Score:4, Informative)
http://pleac.sourceforge.net/ [sourceforge.net]
Pointless, don't bother! (Score:3, Informative)
Might be worth posting somewhere once there's actual useful content, but just not now.
But the
Re:Pointless, don't bother! (Score:5, Insightful)
Parent
Re: (Score:3, Informative)
Re:Here's better (Score:4, Interesting)
Parent
Re: (Score:3, Informative)
Re:Right tool for the job (Score:5, Interesting)
>>>I see this ending up as an effort to shoehorn concepts unique to one language to another language (building web sites in COBOL *shiver*).
I once saw a series of cgi-bin routines written in Fortran-77 because that's what the web-site designer knew, and the schedule was too tight for her to learn Perl in time. (for those of you who started programming after compiled languages gave way to Python/Perl/Ruby/WombatCode6000, get a copy of G77, and try to compare two strings of different lengths) It's no big deal; given enough time one Turing-complete language can accomplish the same work as any other Turing-complete language. It's just the degree of pain you're willing to endure that's the limiting factor.
As for the F77/cgi-bin programmer, She's a full professor now (though not in Comp. Sci, alas),
Parent