0%

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

Table of Contents

  1. 1. What Is Functional Programming?
    1. Immutability
    2. Referential Transparency
    3. Higher Order Functions
    4. Lazy Evaluation
    5. Thinking likek a functional programmer
    6. The Benefits of Functional Programming
    7. FP can improve productivity
    8. FP is fun!
  2. 2. Category Theory and Patterns
    1. Two Kinds of Patterns
    2. Category Theory Based Patterns
    3. Objects and Morphisms
    4. The category Set
    5. The category Scal
    6. Functors
    7. The Patterns
    8. The pattern Functor
    9. Monoids
    10. Natural Transformations
    11. Monads
    12. Conclusion
18.206.12.31