~/talk

From Java 7 to Functional Programming

TalkinFrenchat Devfest Lille 2018 · on Thursday, 2018-06-21· [java, functional-programming]
slides:none on file

Migrates a Java 7 web application to a functional style using Java 8 features and the Vavr library, adding immutability, Option/Try, pattern matching, flatMap, and reduce to remove boilerplate. Keeps the same REST API and JPA backend while demonstrating step‑by‑step refactorings, Spring and Jackson integration, conversion techniques, and cases where performance or library limits matter, with live demos showing a ~30–50% LOC reduction and compatible behavior (including changing a response to 404 via pattern matching).

AI-written summary · about

  1. 0:00Java 7 to functional metaphor
  2. 2:27Introduction
  3. 3:09Functional Java with Vavr
  4. 3:50Lambda functions in Java
  5. 7:25Method references and math
  6. 9:53Immutable Vavr collections
  7. 11:57Option in functional programming
  8. 15:48Either type and error handling
  9. 18:21Pattern matching with Vavr
  10. 21:31Vavr with Spring and Jackson
  11. 21:55Live coding: functional migration
  12. 23:40Migrating User model
  13. 27:39Migrating repositories
  14. 27:59Migrating controllers
  15. 33:18FlatMap API migration
  16. 38:01Migrating seed data
  17. 39:26Validating migration results
  18. 40:30HTTP errors with pattern matching
  19. 44:23Vavr benefits and feedback
  20. 47:52Adopting functional Java
  21. 48:13Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.