~/talk

Let’s Set the Records Straight

Talkat IntelliJ IDEA Conf 2024 · 2024-03-06..03-07· [java]
slides:none on file

Records generate constructor, getters, equals, hashCode and toString automatically, are final by default and make components final (so avoid mutable members like StringBuilder). Compact constructors act as a transformer between the caller and the canonical constructor — use them to validate (range checks) and transform (round latitude to two decimals) rather than mutating fields. Non-canonical constructors route through the compact/canonical flow. Frameworks that need no-arg constructors force workarounds; consider withers or explicit factory/no-arg constructors.

AI-written summary · about

  1. 0:00Introduction to records
  2. 2:33Syntax and benefits
  3. 7:05Automatic record features
  4. 9:11Immutability and safety
  5. 12:23Records versus libraries
  6. 15:48Inheritance and interfaces
  7. 20:10Canonical constructors
  8. 29:42Compact constructors
  9. 38:48Non-canonical constructors
  10. 43:56Frameworks and evolution
  11. 48:28Local records as tuples
~/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.