~/talk

Clean Application Development with Records, Sealed Classes and Pattern Matching

Talkat Devnexus 2022 · 2022-04-12..04-14· [java]
name:JP
links:none on file
slides:none on file

Shows Java 17/18 features with live code: demonstrates text blocks for multi-line strings, builds a Range record with canonical constructor and validation, and proves records stop deserialization from creating invalid instances — records prevent deserialization bypass. Refactors a CSV city pipeline by replacing String/Integer with State and Population records (small cost, clearer types), adds a custom collector, and uses pattern matching for switch plus sealed interfaces so the compiler enforces exhaustive cases.

AI-written summary · about

  1. 0:00Introduction
  2. 3:28Text blocks in Java 17
  3. 12:37Understanding Java records
  4. 25:37Serialization and security
  5. 30:43Improving code readability
  6. 50:31Pattern matching and sealed types
~/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.