Becoming Functional Front Cover

Becoming Functional

  • Length: 152 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-07-25
  • ISBN-10: 1449368174
  • ISBN-13: 9781449368173
  • Sales Rank: #1093166 (See Top 100 Books)
Description

If you have an imperative (and probably object-oriented) programming background, this hands-on book will guide you through the alien world of functional programming. Author Joshua Backfield begins slowly by showing you how to apply the most useful implementation concepts before taking you further into functional-style concepts and practices.

In each chapter, you’ll learn a functional concept and then use it to refactor the fictional XXY company’s imperative-style legacy code, writing and testing the functional code yourself. As you progress through the book, you’ll migrate from Java 7 to Groovy and finally to Scala as the need for better functional language support gradually increases.

  • Learn why today’s finely tuned applications work better with functional code
  • Transform imperative-style patterns into functional code, following basic steps
  • Get up to speed with Groovy and Scala through examples
  • Understand how first-class functions are passed and returned from other functions
  • Convert existing methods into pure functions, and loops into recursive methods
  • Change mutable variables into immutable variables
  • Get hands-on experience with statements and nonstrict evaluations
  • Use functional programming alongside object-oriented design

Table of Contents

Chapter 1. Introduction
Chapter 2. First-Class Functions
Chapter 3. Pure Functions
Chapter 4. Immutable Variables
Chapter 5. Recursion
Chapter 6. Strict and Nonstrict Evaluations
Chapter 7. Statements
Chapter 8. Pattern Matching
Chapter 9. Functional OOP
Chapter 10. Conclusion

To access the link, solve the captcha.