In the Functional Programming for Java Developers training course, you'll learn:
Introducing the Pure Function Concept
- What are "side effects"?
- What are "observable side effects"?
- Why we care: composability of program elements and maintenance
- Avoiding mocking: Testing a pure function
- Refactoring our thinking and designs for pure functions
Immutability in the Real World
- Unresolved and resolved values
- Variable names and "meaning something else"
- Expressions versus variables
- Warning: Initialization is mutation
- Overview of recursion
- Overview of immutable data structures
Solving a Simple Design Problem Using Imperative and Functional Styles
- Printing items from a list
- Passing behavior as function arguments
- Introduction to higher-order functions
Java's Lambda Syntax
- Lambdas
- The single abstract method and functional interfaces
- Method reference syntax
Behavior Factories
- Methods returning behaviors
- Returning behaviors that depend on the factory arguments
- Closures in Java
- Function decorators
- Investigating some of Java's standard function decorators
The Importance of Generics in Functional Programming
- Generics as the polymorphism of functional style
- Using generics to describe higher-order functions
- Co- and contravariance in higher-order function arguments
Introduction to the Monad Concept
- A smart container
- Selecting items
- Changing items, the Functor
- The flatMap method, the Monad
Introduction to Producing a Final Result
More Advanced and Parallel Production of a Result
- The Monoid
- Reductions to a different type
- Fold operations
Overview of Monad-like Libraries and Frameworks
- Java Streams
- Java's Promise API, the CompletableFuture
- Spark Streaming
Handling Errors in Functional Programming
- Using reliable, purpose-specific, abstract data types can avoid problems
- Total vs partial functions
- The trouble with exceptions
- Using Optional and Either monad-like features
- Wrapping code that throws exceptions