~/talk

Data Oriented Programming with the JDK 19

Talkat Jfokus 2023 · 2023-02-06..02-08· [java]
slides:none on file

JDK 19/20 introduce records that auto-generate final fields, accessors, equals/hashCode/toString and support canonical and compact constructors for validation; record deserialization invokes the canonical constructor, closing a serialization-validation bypass. Pattern matching (preview) lets code deconstruct records in instanceof, switch and for-each to remove casts, make switches exhaustive when combined with sealed types, and bind nested components directly. Many features (record patterns, nested patterns, for-each patterns) are preview in JDK 19–20; instanceof pattern is final since JDK 16 and other pattern kinds (arrays, deconstructors) are planned.

AI-written summary · about

  1. 0:00Introduction to Java
  2. 3:06Data-oriented Programming
  3. 6:10Understanding Java Records
  4. 14:55Records and Serialization
  5. 23:53Introduction to Pattern Matching
  6. 34:05Pattern Matching in Switch
  7. 44:37Future Java Pattern Matching
~/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.