~/talk

Are Immortal Libraries Ready for Immutable Classes?

Talkat Devoxx Poland 2022 · 2022-06-22..06-24· [java, software-architecture]
links:none on file
slides:none on file

Argues that many Java libraries still trip up constructor‑based immutable classes: Jackson needs either per‑field @JsonProperty or @ConstructorProperties metadata, Lombok significantly reduces boilerplate and can generate builders and constructor metadata, Java records help but aren’t a silver bullet, Hibernate supports @Immutable but still allows deletes or native updates unless configuration throws, and Mockito requires Mockito 2+ to mock finals. Shows a staged rocket lifecycle implemented as multiple immutable types with a type‑safe builder and says performance worries are often overstated.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:31Mutable classes pros and cons
  3. 5:35Immutability basics and disclaimers
  4. 7:01Tools for immutable classes
  5. 8:46Constructor properties annotation
  6. 9:50Reasons for mutability in Java
  7. 13:07Constructor-based dependency injection
  8. 15:13Property injection with DTOs
  9. 17:23JPA entities and immutability
  10. 20:55Performance and immutability myths
  11. 23:25Functional programming and immutability
  12. 24:30Value objects and data types
  13. 26:16Java ecosystem evolution
  14. 27:21Deserializing to immutable classes
  15. 29:53Modifying immutable objects
  16. 31:39State machines with immutable classes
  17. 34:29Testing final classes with Mockito
  18. 35:55Mocking and constructor-based classes
  19. 37:00Summary and main message
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.