楼主: kychan
5225 34

【2015新书】Living Clojure [推广有奖]

区版主

泰斗

66%

还不是VIP/贵宾

-

TA的文库  其他...

学管理 • 学人生

每日股市

【KYCHAN文库】

威望
12
论坛币
1179179 个
通用积分
101682.9058
学术水平
15760 点
热心指数
16780 点
信用等级
14408 点
经验
679888 点
帖子
12357
精华
52
在线时间
10016 小时
注册时间
2013-4-2
最后登录
2025-12-8

初级热心勋章 中级热心勋章 高级热心勋章 初级学术勋章 中级学术勋章 高级学术勋章 初级信用勋章 中级信用勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

楼主
kychan 学生认证  发表于 2015-7-1 14:19:22 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
【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


== 回帖见免费下载 ==

本帖隐藏的内容

Carin Meier-Living Clojure.pdf (4 MB)


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


二维码

扫码加我 拉你入群

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

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

关键词:Clojure Living livin jure CLO perfect before 出版社 Media

已有 3 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
np84 + 100 精彩帖子
Nicolle + 100 + 100 + 5 + 5 精彩帖子
jerker + 5 + 5 + 5 + 5 精彩帖子

总评分: 经验 + 200  论坛币 + 105  学术水平 + 10  热心指数 + 10  信用等级 + 5   查看全部评分

本帖被以下文库推荐

不管你不喜欢我和不爱我

沙发
dufe100 发表于 2015-7-1 14:25:38
谢谢分享好书!!
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
kychan + 100 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 100  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

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

板凳
421073390 在职认证  发表于 2015-7-1 14:35:05
{:3_41:}沙发君呢?
大叔呢?
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
kychan + 100 + 1 + 1 + 1 鼓励积极发帖讨论

总评分: 经验 + 100  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

报纸
jerker 发表于 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:

  1. (defn who-are-you [input]
  2.   (cond
  3.     (= java.lang.String (class input)) "String - Who are you?"   1
  4.     (= clojure.lang.Keyword (class input)) "Keyword - Who are you?" 2
  5.     (= java.lang.Long (class input)) "Number - Who are you?"))  3

  6. (who-are-you :alice)   4
  7. ;; -> "Keyword - Who are you?"

  8. (who-are-you "alice") 5
  9. ;; -> "String - Who are you?"

  10. (who-are-you 123) 6
  11. ;; -> "Number - Who are you?"

  12. (who-are-you true) 7
  13. ;; -> nil
复制代码

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.

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

地板
jerker 发表于 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.

已有 2 人评分经验 论坛币 收起 理由
Nicolle + 20 奖励积极上传好的资料
kychan + 100 鼓励积极发帖讨论

总评分: 经验 + 100  论坛币 + 20   查看全部评分

7
oliverpinkman 学生认证  发表于 2015-7-1 16:23:13
support!!

8
acctoftony 发表于 2015-7-1 16:39:33
谢谢分享。

9
Elena3 发表于 2015-7-1 16:49:50

10
qiaoqiao133 发表于 2015-7-1 18:05:15
谢谢分享

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-31 11:33