~/talk

The Record: Migrate to Immutability

Talkat JCON EUROPE 2025 · 2025-05-12..05-15· [java, typescript]
slides:none on file

Records replace POJOs with a one-line immutable carrier that gives a canonical constructor, getters (no get prefix), toString/hashCode/equals for free, and can speed tight loops only at millions of ops/sec; they are only shallowly immutable so a Box with an ArrayList still allows mutation unless you use defensive copies like List.copyOf (which works). Migration tools include IntelliJ Lombok→record recipe and builders or the planned JEP-468 withers (not yet released), and converting often reveals latent bugs via failing tests.

AI-written summary · about

  1. 0:00Intro
  2. 0:37The Record
  3. 2:15When to use records
  4. 4:47How to get mutable records
  5. 7:19Defensive constructors
  6. 8:36Width functions
  7. 10:18When to stop migrating
  8. 11:50Should you migrate
~/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.