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:
- Continuous Profiling in Production: What, Why and How (SkillsCast recorded in April 2019)
- Java Design Patterns: The Timeless Way of Coding with Dr Heinz Kabutz (Online Course on 12th - 15th October 2020)
- F# eXchange 2020 (Online Conference on 21st October 2020)
- Haskell eXchange 2020 (Online Conference on 4th - 5th November 2020)
- Building a Cloud Ready Application with Quarkus (SkillsCast recorded in August 2020)
- Test Automation Beyond Java 8 (SkillsCast recorded in July 2020)
Pragmatic Functional Refactoring with Java 8
Richard Warburton is an empirical technologist, solver of deep-dive technical problems and author of 'Java 8 Lambdas: Pragmatic Functional Programming'. He has worked as a developer in varied areas including Statistical Analytics, Static Analysis, Compilers and Networking. He is a leader in the London Java Community and runs OpenJDK Hackdays. Richard is also a known conference speaker, having talked at JavaOne, Devoxx, JFokus, DevoxxUK, Geecon, JAX London and Codemotion. Richard has obtained a PhD in Computer Science from The University of Warwick.
Raoul-Gabriel Urma is CEO and co-founder of Cambridge Spark, a leading learning community for data scientists and developers in the UK, as well as chairman and co-founder of Cambridge Coding Academy, a growing community of young coders and pre-university students. He is author of 'Java 8 in Action: Lambdas, Streams, and functional-style programming'.