Becoming Functional (Paperback)

Joshua Backfield

  • 出版商: O'Reilly
  • 出版日期: 2014-08-05
  • 定價: $990
  • 售價: 9.5$941
  • 貴賓價: 9.0$891
  • 語言: 英文
  • 頁數: 152
  • 裝訂: Paperback
  • ISBN: 1449368174
  • ISBN-13: 9781449368173
  • 相關分類: C++ 程式語言Command Line
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

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