~/talk

Refactor Your Code to Java 20

Talkat Devnexus 2023 · 2023-04-04..04-06· [java]
links:none on file
slides:none on file

Walks through concrete migrations from Java 10 to Java 21 with live examples: var local type inference to remove repetitive types, Java 15 text blocks and Java 21 string templates for multiline and templated HTML, Java 14+ switch improvements including switch as expression, arrow labels, case null, yield and type-patterns, pattern matching for instanceof and record deconstruction in for-each (Java 20 preview requires enabling), records as immutable data classes replacing boilerplate equals/hashCode/toString, Unicode emoji changes (Java 19), javadoc code snippets, sealed classes, and automation via IntelliJ/Eclipse refactors, OpenRewrite, SonarQube and Maven plugins.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 6:35Local variable type inference
  3. 10:07Modern switch statements
  4. 22:16Emoji support in Java
  5. 27:26Records for boilerplate
  6. 34:27Java 20 record improvements
  7. 39:38Code snippets in documentation
  8. 46:04Sealed classes overview
  9. 49:37Poll and closing
~/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.