You may be hearing a lot of buzz around functional programming. For example, Java 8 recently introduced new features (lambda expressions and method references) and APIs (Streams, Optional and CompletableFutures) inspired from functional ideas such as first-class functions, composition and immutability.
However, what does this mean for my existing codebase?
In this talk we show how you can refactor your traditional object-oriented Java to using FP features and APIs from Java 8 in a beneficial manner.
We will discuss:
How to adapt to requirement changes using first-class functions
How you can enhance code reusability using currying
How you can make your code more robust by favouring immutability over mutability
How you can design better APIs and reduce unintended null pointer exceptions using an optional data type"
YOU MAY ALSO LIKE:
Pragmatic Functional Refactoring with Java 8
Richard Warburton is an empirical technologist and solver of deep-dive technical problems. Recently he has written a book on Java 8 Lambdas for O’Reilly. He’s worked as a developer in quite varied areas including Statistical Analytics, Static Analysis, Compilers and Networking.
Raoul-Gabriel Urma is a PhD student in Computer Science at the University of Cambridge. His research centers on programming languages and software engineering. He is an author of the upcoming book Java 8 in Action: Lambdas, Streams, and functional-style programming published by Manning.