新書推薦:

《
清末民国骈文批评转型研究
》
售價:NT$
383

《
中国汉江流域观赏植物资源图鉴
》
售價:NT$
1010

《
BIM概论与土建建模
》
售價:NT$
305

《
身体秩序与法律规训——传统中国的“身体法治”面相(国家哲学社会科学成果文库)
》
售價:NT$
1015

《
日本佛教史纲
》
售價:NT$
428

《
给孩子的安全教育漫画:防走失、防拐骗 少儿安全教育专家GY局长 让孩子全面掌握保护自己方法
》
售價:NT$
194

《
多头政体——参与和反对(汉译名著18)
》
售價:NT$
286

《
政治经济学(汉译名著18)
》
售價:NT$
592
|
| 內容簡介: |
|
如果你想得益于Java以及其他编程语言的函数式编程特性,那么这本深入的指导书将是你需要的。软件架构师Neal Ford就职于ThoughtWorks,是一名软件构架师,职称为Meme Wrangler。ThoughtWorks是一家全球化IT资讯公司,提供end-to-end软件开发和交付。
|
| 目錄:
|
Preface
1. Why
Shifting Paradigms
Aligning with Language Trends
Ceding Control to the LanguageRuntime
Concision
2. Shift
A Common Example
Imperative Processing
Functional Processing
Case Study: Number Classification
Imperative Number Classification
Slightly More Functional Number Classification
Java 8 Number Classifier
Functional Java Number Classifier
Common Building Blocks
Filter
Map
FoldReduce
Synonym Suffering
Filter
Map
FoldReduce
3. Cede
Iteration to Higher-Order Functions
Closures
Currying and Partial Application
Definitions and Distinctions
In Groovy
In Clojure
Scala
Common Uses
Recursion
Seeing Lists Differently
Streams and Work Reordering
4. Smarter, Not Harder
Memoization
Caching
Adding Memoization
Laziness
Lazy Iterator in Java
Totally Lazy Number Classifier
Lazy Lists in Groovy
Building a Lazy List
Benefits of Laziness
Lazy Field Initialization
5. Evolve
Few Data Structures, Many Operations
Bending the Language Toward the Problem
Rethinking Dispatch
Improving Dispatch with Groovy
Clojure''s "Bendable" Language
Clojure Multimethods and a la carte Polymorphism
Operator Overloading
Groovy
Scala
Functional Data Structures
Functional Error Handling
The Either Class
The Option Class
Either Trees and Pattern Matching
6. Advance...
Design Patterns in Functional Languages
Function-Level Reuse
Template Method
Strategy
The Flyweight Design Pattern and Memoization
Factory and Currying
Structural Versus Functional Reuse
Code Reuse Via Structure
7. Practical Thinking
Java 8
Functional Interfaces
Optional
Java 8 Streams
Functional Infrastructure
Architecture
Web Frameworks
Databases
8. Polyglot and Polyparadigm
Combining Functional with Metaprogramming
Mapping Data Types with Metaprogramming
Infinite Streams with Functional Java and GrooW
Consequences of Multiparadigm Languages
Context Versus Composition
Functional Pyramid
Index
|
|