全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 winbugs及其他软件专版
5073 34
2015-07-01
【2015新书】    Living Clojure
Living Clojure
Book 图书名称: Living Clojure
Author 作者:Carin Meier
Publisher 出版社: O'Reilly Media
Page 页数:242
Publishing Date 出版时间:Apr 30, 2015                        
Language 语言:English
Size 大小: 4 MB
Format 格式:pdf文字版
ISBN:1491909048, 9781491909041
Edition:第1版搜索过论坛,没有该文档


If you’re an experienced programmer who has not worked with Clojure before, this guide is the perfect thorough but gentle introduction for you. Author Carin Meier not only provides a practical overview of this JVM language and its functional programming concepts, but also includes a complete hands-on training course to help you learn Clojure in a structured way.
The first half of the book takes you through Clojure’s unique design and lets you try your hand at two Clojure projects, including a web app. The holistic course in second half provides you with critical tools and resources, including ways to plug into the Clojure community.
Understand the basic structure of a Clojure expressionLearn how to shape and control code in a functional wayDiscover how Clojure handles real-world state and concurrencyTake advantage of Java classes and learn how Clojure handles polymorphismManage and use libraries in a Clojure projectUse the core.async library for asynchronous and concurrent communicationExplore the power of macros in Clojure programmingLearn how to think in Clojure by following the book’s seven-week training course


== Table of contents ==
n/a


== 回帖见免费下载 ==

本帖隐藏的内容



声明: 本资源仅供学术研究参考之用,发布者不负任何法律责任,敬请下载者支持购买正版。
提倡免费分享! 我发全部免费的,分文不收 来看看 ...
你也可关注我  马上加关注


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-7-1 14:25:38
谢谢分享好书!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-1 14:34:17
希望您喜欢我的免费发布 请您加入我的【KYCHAN文库】 感恩
您可以即时知道我的每天独家发布, 每天都会有一帖独家发布哟!
https://bbs.pinggu.org/forum.php?mod=collection&action=view&ctid=2819
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-1 14:35:05
{:3_41:}沙发君呢?
大叔呢?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-1 14:37:22
Practical Polymorphism

In an object-oriented language like Java, there are a large amount of types for every situation. Clojure takes another approach. It has a small amount of types and many different functions for them. However, being pragmatic, Clojure realizes that polymorphism is flexible and useful for some situations. Let’s take a look at a few ways that Clojure can flex its polymorphic muscles.

If we wanted to have a function that would behave differently based on the kind of input we had, we could use a case like statement. This example uses a function called cond that behaves differently depending on whether the argument is a keyword, string, or number, and returns the caterpillar’s questions to Alice:

复制代码

The class input is compared, and if it is a string it will return "String - Who are you?"

If it is a keyword, it will return "Keyword - Who are you?"

If it is a number (class of Long), it will return "Number - who are you?"

When called with a keyword, returns the clause that matched the keyword class.

When called with a string, returns the clause that matched the string class.

When called with a number, returns the clause that matched the number class.

When called with a boolean, returns nil because there is no matching cond clause.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-1 14:38:02
Handling Interop with Java

When a new language comes into being, it faces the library problem. That is, to be useful in everyday situations, a language needs to do all the things that current dominant languages do. These current dominant languages have a full array of libraries that support things like parsing JSON and logging.

Clojure solved this new language library problem by running on the JVM and having interoperability with Java classes. When you use Clojure, you can use Java classes and Java libraries. Clojure builds on the strength of the production-hardened and tested JVM and existing Java libraries. In fact, many of the popular Clojure libraries in use today utilize Java libraries as fundamental building blocks. We are going to cover the most common areas that you will encounter: how to import Java libraries/classes, how to create new instances of them, and how to interact with their methods.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群