Functional Programming, Simplified: (Scala Edition) pdf epub mobi txt 电子书 下载 2024


Functional Programming, Simplified: (Scala Edition)

简体网页||繁体网页
Alvin Alexander
CreateSpace Independent Publishing Platform
2017-12-7
780
USD 35.00
平装
9781979788786

图书标签: scala  functional   


喜欢 Functional Programming, Simplified: (Scala Edition) 的读者还喜欢




点击这里下载
    


想要找书就要到 小哈图书下载中心
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

发表于2024-11-08

Functional Programming, Simplified: (Scala Edition) epub 下载 mobi 下载 pdf 下载 txt 电子书 下载 2024

Functional Programming, Simplified: (Scala Edition) epub 下载 mobi 下载 pdf 下载 txt 电子书 下载 2024

Functional Programming, Simplified: (Scala Edition) pdf epub mobi txt 电子书 下载 2024



图书描述

If you’ve had trouble trying to learn Functional Programming (FP), you’re not alone. In this book, Alvin Alexander — author of the Scala Cookbook and former teacher of Java and Object-Oriented Programming (OOP) classes — writes about his own problems in trying to understand FP, and how he finally conquered it.

What he originally learned is that experienced FP developers are driven by two goals: to use only immutable values, and write only pure functions. What he later learned is that they have these goals as the result of another larger goal: they want all of their code to look and work just like algebra.

While that sounds simple, it turns out that these goals require them to use many advanced Scala features — which they often use all at the same time. As a result, their code can look completely foreign to novice FP developers. As Mr. Alexander writes, “When you first see their code it’s easy to ask, ‘Why would anyone write code like this?’”

Mr. Alexander answers that “Why?” question by explaining the benefits of writing pure functional code. Once you understand those benefits — your motivation for learning FP — he shares five rules for programming in the book:

All fields must be immutable (‘val’ fields).

All functions must be pure functions.

Null values are not allowed.

Whenever you use an ‘if’ you must also use an ‘else’.

You won’t create OOP classes that encapsulate data and behavior; instead you’ll design data structures using Scala ‘case’ classes, and write pure functions that operate on those data structures.

In the book you’ll see how those five, simple rules naturally lead you to write pure, functional code that reads like algebra. He also shares one more Golden Rule for learning:

Always ask “Why”?

Lessons in the book include:

How and why to write only pure functions

Why pure function signatures are much more important than OOP method signatures

Why recursion is a natural tool for functional programming, and how to write recursive algorithms

Because the Scala ‘for’ expression is so important to FP, dozens of pages explain the details of how it works

In the end you’ll see that monads aren’t that difficult because they’re a natural extension of the Five Rules

The book finishes with lessons on FP data modeling, and two main approaches for organizing your pure functions

As Mr. Alexander writes, “In this book I take the time to explain all of the concepts that are used to write FP code in Scala. As I learned from my own experience, once you understand the Five Rules and the small concepts, you can understand Scala/FP.”

Please note that because of the limits on how large a printed book can be, the paperback version does not include all of the chapters that are in the Kindle eBook. The following lessons are not in the paperback version:

Grandma’s Cookies (a story about pure functions)

The ScalaCheck lessons

The Type Classes lessons

The appendices

Because those lessons didn’ fit in the print version, they have been made freely available online.

(Alvin Alexander (alvinalexander.com) wrote the popular Scala Cookbook for O’Reilly, and also self-published two other books, How I Sold My Business: A Personal Diary, and A Survival Guide for New Consultants.)

Functional Programming, Simplified: (Scala Edition) 下载 mobi epub pdf txt 电子书

著者简介


图书目录


Functional Programming, Simplified: (Scala Edition) pdf epub mobi txt 电子书 下载
想要找书就要到 小哈图书下载中心
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

用户评价

评分

非常好,亚马逊评价不错。由浅入深、体系地讲解FP,同时作者希望解决《Scala函数式编程》的阅读体验问题。

评分

非常好,亚马逊评价不错。由浅入深、体系地讲解FP,同时作者希望解决《Scala函数式编程》的阅读体验问题。

评分

非常好,亚马逊评价不错。由浅入深、体系地讲解FP,同时作者希望解决《Scala函数式编程》的阅读体验问题。

评分

非常好,亚马逊评价不错。由浅入深、体系地讲解FP,同时作者希望解决《Scala函数式编程》的阅读体验问题。

评分

非常好,亚马逊评价不错。由浅入深、体系地讲解FP,同时作者希望解决《Scala函数式编程》的阅读体验问题。

读后感

评分

评分

评分

评分

评分

类似图书 点击查看全场最低价

Functional Programming, Simplified: (Scala Edition) pdf epub mobi txt 电子书 下载 2024


分享链接









相关图书




本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

友情链接

© 2024 qciss.net All Rights Reserved. 小哈图书下载中心 版权所有