A platform showcasing solutions to the same task in various programming languages, highlighting language features and algorithm implementations.
Rosetta Code is a crowdsourced resource and programming chrestomathy for computer programming languages and algorithms. The site presents solutions to various tasks across multiple programming languages, to demonstrate how the same algorithm and data structures can be implemented in different ways.
The goal of Rosetta Code is to provide concrete examples to aid learning to program and understand programming languages. By implementing the same tasks in various languages, differences and similarities between languages become apparent. Rosetta Code currently has over 1,000 tasks, with solutions provided in over 700 programming languages.
All content on Rosetta Code is contributed by volunteers and coordinated through a MediaWiki website. Tasks range from simple (e.g. Hello World program) to more complex algorithms and data structures (sorting algorithms, encryption, etc.). Solutions must be compilable/executable and clearly demonstrate the feature or algorithm relevant to the task.
In addition to being a resource for programming education, Rosetta Code also serves as a catalog of implementations that programmers can reference when porting an algorithm to a new language. The diversity of languages also makes Rosetta Code uniquely qualified to host discussions contrasting different language design decisions and programming paradigms.
Here are some alternatives to Rosetta Code:
Suggest an alternative ❐