Zum Hauptinhalt springen
Nicht aus der Schweiz? Besuchen Sie lehmanns.de
Becoming Functional - Joshua Backfield

Becoming Functional

Steps for Transforming Into a Functional Programmer
Buch | Softcover
152 Seiten
2014
O'Reilly Media (Verlag)
978-1-4493-6817-3 (ISBN)
CHF 37,65 inkl. MwSt
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

Joshua F. Backfield is a Software Development Engineer at Dell SecureWorks, Inc., an industry leading MSSP. He is responsible for the design and development of many internal UI tools as well as multiple backend processes. He has over 5 years of development experience, 3 of which have been in production software. He holds a Bachelor of Science in Electronic Systems Technologies from Southern Illinois University at Carbondale and a Masters of Science in Computer Science from DePaul University. He has worked in a variety of languages such as C, C++, Perl, Java, Javascript, Scala and continues to learn and grow with more languages constantly. He has ported multiple native C applications to Scala, introduced many coworkers to Scala, and taught them the underlying functional programming concepts.

Chapter 1Introduction
Overview of Concepts in Functional Programming
Functional Programming and Concurrency
Conclusion
Chapter 2First-Class Functions
Introduction to XXY
Functions as Objects
Anonymous Functions
Higher-Order Functions
Refactoring get Functions by Using Groovy
Conclusion
Chapter 3Pure Functions
Output Depends on Input
Purifying Our Functions
Side Effects
Conclusion
Chapter 4Immutable Variables
Mutability
Immutability
Conclusion
Chapter 5Recursion
An Introduction to Recursion
Recursion
Tail Recursion
Refactoring Our countEnabledCustomersWithNoEnabledContacts Function
Conclusion
Chapter 6Strict and Nonstrict Evaluations
Strict Evaluation
Nonstrict (Lazy) Evaluation
Laziness Can Create Problems
Conclusion
Chapter 7Statements
Taking the Plunge
Simple Statements
Block Statements
Everything Is a Statement
Conclusion
Chapter 8Pattern Matching
Simple Matches
Simple Patterns
Extracting Lists
Extracting Objects
Converting to Pattern Matches
Conclusion
Chapter 9Functional OOP
Static Encapsulation
Objects As Containers
Code as Data
Conclusion
Chapter 10Conclusion
From Imperative to Functional
New Design Patterns
Putting It All Together
Conclusion

Erscheint lt. Verlag 19.8.2014
Verlagsort Sebastopol
Sprache englisch
Maße 178 x 233 mm
Gewicht 263 g
Einbandart Paperback
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Software Entwicklung
Schlagworte Funktionale Programmierung
ISBN-10 1-4493-6817-4 / 1449368174
ISBN-13 978-1-4493-6817-3 / 9781449368173
Zustand Neuware
Informationen gemäß Produktsicherheitsverordnung (GPSR)
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Grundlagen und praktische Anwendungen von Transpondern, kontaktlosen …

von Klaus Finkenzeller

Buch (2023)
Hanser (Verlag)
CHF 125,95
das umfassende Handbuch

von Marc Marburger

Buch | Hardcover (2024)
Rheinwerk (Verlag)
CHF 69,85