学习如何像函数式程序员一样思考和编写代码。通过本实用指南,熟悉面向对象编程的软件开发人员将深入了解函数式编程的核心概念,并学习如何在大型或复杂的软件项目中同时使用函数式和面向对象功能。
作者Jack Widman使用来自Java、Python、C#、Scala和JavaScript的示例,帮助您获得一个新的视角和一套工具,用于管理问题域中的复杂性。您将能够编写更简单、可重用、更易于测试和修改且更一致正确的代码。本书还向您展示了如何使用范畴理论中的模式来帮助弥合OOP和函数式编程之间的鸿沟。
学习函数式编程基础知识,探索函数式程序员处理问题的方式
了解FP与面向对象和命令式编程的区别
使用一套实用、适用的设计模式,以功能的方式模拟现实
了解如何将FP和OOP功能整合到软件项目中
适当地应用功能设计模式,并使用它们编写正确、健壮且易于修改的代码
Learning Functional Programming (Fourth Early Release)
Learn how to think and write code like a functional programmer. With this practical guide, software developers familiar with object-oriented programming will dive into the core concepts of functional programming and learn how to use both functional and OOP features together on large or complex software projects.
Author Jack Widman uses samples from Java, Python, C#, Scala, and JavaScript to help you gain a new perspective and a set of tools for managing the complexity in your problem domain. You’ll be able to write code that’s simpler, reusable, easier to test and modify, and more consistently correct. This book also shows you how to use patterns from category theory to help bridge the gap between OOP and functional programming.
Learn functional programming fundamentals and explore the way functional programmers approach problems
Understand how FP differs from object-oriented and imperative programming
Use a set of practical, applicable design patterns that model reality in a functional way
Learn how to incorporate FP and OOP features into software projects
Apply functional design patterns appropriately and use them to write correct, robust, and easily modifiable code
OR