演示编程语言之间差异的典型任务/问题 [英] Typical tasks/problems to demonstrate differences between programming languages

查看:88
本文介绍了演示编程语言之间差异的典型任务/问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在某个地方说过(老实说,我不知道我从哪里得到的),每年应该学习一种编程语言。我可以看到这可能是一个好主意,因为您将学习新的模式和方法,以不同的语言解决相同的问题。通常,当学习一种新语言时,我会研究应该如何用该语言解决某些问题。现在我的问题是,根据您的经验,什么是好的,简单的,定义明确的任务,可以说明编程语言之间的差异。

Somewhere some guy said (I honestly do not know where I got this from), that one should learn one programming language per year. I can see where that might be a good idea, because you learn new patterns and ways to look at the same problems by solving them in different languages. Typically, when learning a new language, I look at how certain problems are supposed to be solved in that language. My question now is, what, in you experience, are good, simple, and clearly defined tasks that demostrate the differences between programming languages.

这里的想法是要有一个这套任务,当我用我所学习的语言解决所有任务时,可以很好地概述应该使用该语言完成工作的方式。我什至不知道这是否可能,但是肯定会很有用。

The Idea here is to have a set of tasks, that, when I solve all of them in the language I am learning, gives me a good overview of how things are supposed to be done in that language. I do not know if that is even possible, but it sure would be a useful thing to have.

一个典型的例子,尤其是在函数语言教程中经常看到的是

A typical example one often sees especially in tutorials for functional languages is the implementation of quicksort.

推荐答案

搜索代码卡塔以获取某些资源。

Search for "Code Kata" for some resources.

选择一个问题。用不同的语言解决。

Pick a problem. Solve it in different languages.

http://slott-softwarearchitect.blogspot.com/2009/08/code-kata-resources.html

这篇关于演示编程语言之间差异的典型任务/问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆