学习功能/ Clojure编程 - 实践练习? [英] Learning functional/Clojure programming - practical exercises?

查看:194
本文介绍了学习功能/ Clojure编程 - 实践练习?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Clojure学习函数式编程。你能推荐什么实践练习?在线存储库与解决方案将是完美的。

I'm learning functional programming with Clojure. What practical exercises can you recommend? Online repositories with solutions would be perfect.

我可以想到的一个想法是通过所有流行的排序,树,图形等算法,并在Clojure自己实现。虽然它可以工作,它可能是相当陡峭,我可能会效率低下(相比于知道她在做什么的人)。

One idea I can think of is going through all the popular algorithms on sorting, trees, graphs etc. and implementing them in Clojure myself. While it could work, it may be pretty steep and I'm likely to do it inefficiently (compared to someone who knows what she's doing).

推荐答案

我建议您执行Project Euler练习:

I would recommend doing the Project Euler exercises:

http://projecteuler.net/


项目Euler是一系列
具有挑战性的数学/计算机
编程问题,需要
,而不仅仅是数学见解
来解决。虽然数学将
帮助你达到优雅和
有效的方法,使用
计算机和编程技能将
需要解决大多数问题。

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

由于许多程序员正在解决Euler项目练习,因此可以将这些解决方案与其他(非功能)编程语言进行比较,但也可以使用Clojure解决方案: http://clojure-euler.wikispaces.com/ ,因此您可以将命令式与功能/惯用语Clojure。

Because many programmers are solving Project Euler exercises, you can compare the solutions to other (non-functional) programming languages, but also Clojure solutions are available: http://clojure-euler.wikispaces.com/, so you can contrast imperative vs. functional/idiomatic Clojure.

当然,你将自己学习最多,而不需要咨询任何解决方案。

Of course you will learn the most by first doing the exercises yourself, without consulting any of the solutions.

这篇关于学习功能/ Clojure编程 - 实践练习?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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