开发者

(English, Perl, Python, Ruby) comparison on a code fragment-by-fragment basis? [closed]

开发者_如何学编程 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Looking for a code samples that present a code fragment in plain English, Perl, Python, and Ruby. Here's an example of a whole mini-solution present in that format, but I'd rather just have the code present in a fragment-by-fragment basis.


A good place to look would be Project Euler where (after solving the puzzles yourself) you get access to solutions by other people in all kinds of programming languages. Of course, sometimes there will be atrocious solutions, so you'd have to look at the answers carefully.


Rosetta Code currently has 449 tasks, of which some 349 languages are covered, though the site does not (and cannot) promise to have solutions to every task in every language.

NOTE: aaronasterling posted Rosetta Code as a comment to the question, but never as an answer. After 24-hours, posted it as an answer myself, since I'm not planning on leaving my question open forever, and it's an answer to the question. Feel free to up vote the comment, and not this answer; if aaronasterling post it as an answer, I'll delete this answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜