Functional Programming in Scala - Paul Chiusano

Functional Programming in Scala

Paul Chiusano

出版时间

2014-09-14

ISBN

9781617290657

评分

★★★★★
书籍介绍

Functional programming (FP) is a programming style emphasizing functions that return consistent and predictable results regardless of a program's state. As a result, functional code is easier to test and reuse, simpler to parallelize, and less prone to bugs. Scala is an emerging JVM language that offers strong support for FP. Its familiar syntax and transparent interoperability with existing Java libraries make Scala a great place to start learning FP.

Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming.

You'll discover simple but powerful ideas and techniques that cut through the complexity of modern software engineering, including writing multi-core and distributed programs. You'll learn how FP gives you high confidence in the correctness of your code and helps you design software at high levels of abstraction so that even very large systems become comprehensible at a glance.

WHAT'S INSIDE:

Functional programming from square one in clear, readable language

No prior Scala experience needed

Learn both the hows and whys of FP

No prior experience with FP or Scala is required. Perfect for programmers familiar with FP in other languages wishing to apply their knowledge in Scala.

Paul Chiusano and Rúnar Bjarnason are recognized experts in functional programming with Scala. Each has been writing Scala and using FP professionally for several years. Paul is a Scalaz contributor, blogs and speaks regularly on Scala and FP. Rúnar is a principal contributor to Scalaz and the Functional Java library and has been using and teaching FP since 2008.

目录
PART 1: INTRODUCTION TO FUNCTIONAL PROGRAMMING
1. What is functional programming? - FREE
2. Structuring functional programs - AVAILABLE
3. Functional data structures - AVAILABLE
4. Handling errors without exceptions - AVAILABLE

显示全部
用户评论
https://github.com/fpinscala/fpinscala
本书重点在于 Functional Programming,而 scala 更像是顺带一提(PL 中的工具人)。书中的习题相当烧脑,对 FP 思维方式的锻炼很有帮助。 Scala 整体的语言表达力犀利,虽然有瑕疵,但足够体验到 FP 的神奇之处。当你深刻理解 Functor、Applicative、Monad,并落地在应用中,你会看到一个完全不同的世界。在这个世界中,不止是表面上的酷炫——所有的规则都是代数的、可严格推导的,因此抽象出的原语是如此的简洁而美妙、纯粹而强悍,与人类的认知建立起一道漂亮而牢固的桥梁。 再读《Functional and Reactive Domain Modeling》或许会有更深刻的体会。
好书,清晰明了
很喜欢这本,纯粹读着舒畅的那种
好的你现在学会了四则运算,可以开始做微积分的习题啦~
比Coursera上那节sml+racket的课要好
一本学会fp!
真好,真难
Needs revisiting
收藏