~/talk

void main Rodrigo Graciano

Talkat Devnexus 2024 · 2024-04-09..04-11· [java]
slides:none on file

A Java 8 conference app (50 sessions, 50 speakers, ~1,000 attendees) gets ported to Java 22 using Maven and IntelliJ, with Faker seeding data and ThreadLocalRandom for raffles; the build flips to --enable-preview to try string templates (Java 22 only) and other previews. Concrete changes: replace verbose DTOs with records, use sealed classes and pattern‑matching switch, apply var and text blocks, simplify switch yields and formatting. The demo runs and prints improved NPE diagnostics and cleaner outputs; code and examples live on GitHub.

AI-written summary · about

  1. 0:00Introduction to refactoring
  2. 1:04Simplifying Hello World in Java 21
  3. 4:46Java 21 features overview
  4. 5:09Conference app project overview
  5. 6:53Java 8 and Java 22 modules
  6. 8:57Faker library for random data
  7. 9:39Application output demonstration
  8. 10:00Updating Maven compiler settings
  9. 11:02Fix Me Zero in Maven POM
  10. 12:48Preview features in Java
  11. 14:13IDE and Maven project sync
  12. 15:58Removing Autoboxing in Java
  13. 17:01Null pointer exceptions in Java 14+
  14. 18:24Introduction to VAR keyword
  15. 20:57VAR caveats and best practices
  16. 22:41Switch expressions for payment types
  17. 24:49Handling complex switch expressions
  18. 26:33Text blocks for readable strings
  19. 29:44Text block formatting rules
  20. 31:50Refactoring raffle method with pattern matching
  21. 34:18Pattern matching with instanceof
  22. 36:05Introduction to Java Records
  23. 38:12Records for immutable data
  24. 39:58Records with collections and streams
  25. 41:24Null pointer fixes with Records
  26. 42:28Sealed classes for controlled inheritance
  27. 46:41Sealed class hierarchy rules
  28. 48:51Sealed interfaces and records
  29. 49:31Pattern matching for deconstruction
  30. 51:18Underscore for unused variables
  31. 52:03String templates introduction
  32. 53:52String template interpolation
  33. 54:39Raw string templates with method calls
  34. 55:42String formatting with templates
  35. 57:13Simplified main method in Java
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.