Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

From Object Oriented to Functional Domain Modeling

Devoxx via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk shows how Java developers can combine object-oriented and functional styles in business domain models. Practical examples cover function composition, immutability, salary rules, and functional error handling.

Syllabus

Intro
What is a functional program?
The OOP/FP dualism - FP
From Object to Function centric
A composable functional API
Essence of Functional Programming
Higher-order functions
A strategy pattern Converter
Using the Converter
A functional Converter
Currying
More Function Composition
A Salary Calculator Builder
Using the Salary Calculator Builder
Isolating Salary Rules
A Functional Salary Calculator
Using the Functional Salary Calculator
JAVASLANG A functional Library for Java 8
Error handling with Exceptions?
Error handling The functional alternatives
Error handling with Try monad
and how we can use it
Decoupling state and behavior
Introducing the Reader monad ...
API design is an iterative process
Strive for immutability
Avoid using exceptions for error handling
Use anemic object
FP allows better Reusability & Composability
Suggested readings

Taught by

Devoxx

Reviews

Start your review of From Object Oriented to Functional Domain Modeling

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.