针对初学者的 Clojure 演示?

发布于 2024-11-26 05:15:40 字数 122 浏览 2 评论 0原文

我需要为初学者做一个关于 Clojure 语言的演示。您对选题有何建议?我需要包括哪些要点?

注意:我所说的初学者是指他们在其他编程范例方面有经验,但在函数式编程模型方面没有经验。

I need to make a presentation for beginners about the Clojure language. What are your suggestions on selecting topics on it? What are the points I need to include?

Note: By beginners, I mean that they are experienced in other programming paradigms, but not in the functional programming model.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

过气美图社 2024-12-03 05:15:40

我个人认为这个演示文稿是对 Clojure 的很好的介绍:

Clojure:JVM 的功能并发 - Howard M. Lewis Ship

显然,Rich Hickey 本人的任何演示,例如

Clojure:JVM 的动态编程语言

I personally think this presentation is a great introduction to Clojure:

Clojure:Functional Concurrency for the JVM - Howard M. Lewis Ship

And obviously any presentation by Rich Hickey himself, for example

Clojure: A dynamic programming language for the JVM

沉溺在你眼里的海 2024-12-03 05:15:40

你必须考虑你的目标受众。我将假设他们可能了解 Java。

Clojure 的最佳权威是消息来源 Rich Hickey 本人。他为 Java 程序员撰写了 Clojure 简介。

幻灯片位于此处

他的音频演示位于此处第 2 部分位于此处

You've got to think about your target audience. I'm going to make an assumption that they probably know Java.

The best authority on Clojure is the source himself, Rich Hickey. He's written an introduction to Clojure for Java Programmers.

Slides are here.

Him giving the presentation with audio is here and part2 is here.

空气里的味道 2024-12-03 05:15:40

如果需要,您可以观看关于 Clojure 的我的演示 - PDF 可免费获取...

If need, you can take my presentation about Clojure - PDF is freely available...

天煞孤星 2024-12-03 05:15:40

我昨天发现了此博客条目 - - 令人印象深刻的是,使 Clojure 程序并行化是多么容易(pmap 代替 map :D )。遗憾的是,在我的电脑上它不能在多核上运行,但我还没有研究过它。

使用 Joy of Clojure 等书籍中的示例——它们非常惯用且设计精良。在这本书中,还有关于语言设计的原因,以及——对你来说最重要的——为什么函数+不变性对于多线程编程比过程+OO可变性更好。

是的,我认为并行性很重要。但在我看来,让非 Lisp 听众相信括号地狱不是地狱而是祝福始终是至关重要的;)讲述如何超越平均水平以及为什么 Lisp 是世界上最强大的语言。

尽量不要教他们一门语言,而是展示为什么要学习它。

哦,准备好观众中有人会问“为什么没有 for 循环”或“为什么没有常量”或“为什么不变性不会导致性能问题”。

I found this blog entry yesterday -- impressive how easy is to make Clojure programs parallel (pmap in place of map :D ). Sadly, on my PC it didn't run on multiple cores but I haven't investigated it yet.

Use examples from books like Joy of Clojure -- they are very idiomatic and well designed. In this book there are also reasons on design of language and -- what is most important to you -- why functions+immutability is better for multithreaded programming than procedures+OO mutability.

Yes, I think parallelism is important to tell. But also -- in my opinion -- it is always crucial to convince non-lisp-listeners that The Parentheses Hell is not a hell but blessing ;) Tell about Beating the Averages and why Lisps are the most powerful languages in the world.

Try not to teach them a language but show why to learn it.

Oh, and prepare that someone in the audience will ask "why no for loop" or "why no constants" or "how come immutability doesn't lead to performance problems".

北斗星光 2024-12-03 05:15:40

我将通过启动 REPL 并运行一系列基本语言功能来演示该语言的基础知识,慢慢构建一些更有趣的东西。

这个Clojure 快速教程要点可能会给您一些想法。

I would demonstrate the basics of the language by firing up a REPL and running through a bunch of basic language features, slowly building up to something more interesting.

This Clojure quick tutorial gist may give you some ideas.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文