~/talk

The Best of Java Shorts Shorts Show: 100 Snippets in 45 Minutes

Talkat JDD 2023 · 2023-10-24..10-25· [java]
slides:none on file

Collection of concrete, runnable recipes that demonstrate actual outcomes: 100 snippets that use only javac and VS Code, show Java 21 on Corretto, and include examples that surprise — e.g., run Java as a shell script, built a tiny clipboard washer that strips styling (works but Swing blocks Graal native image), a JWT decoder, file watch and file diff, timers and ScheduledThreadPool, emoji and colored terminal output, and producing a minimal JVM via jlink subset jddvm that boots and runs. Everything uses core Java, no external deps.

AI-written summary · about

  1. 0:00Introduction and Java Shorts origin
  2. 3:55First Java Short hack
  3. 6:44VAR ARGS and timers
  4. 9:52Built-in file watch service
  5. 12:42Clipboard automation
  6. 17:23Custom JVM with jlink
  7. 18:46Terminal colors and logging
  8. 21:13AutoCloseable resources
  9. 23:05Static initializers and JDBC
  10. 24:52Assertions and preconditions
  11. 25:35Terminal reset and formatting
  12. 26:38Functional interfaces
  13. 28:50Optional misuse and preconditions
  14. 30:15String formatting
  15. 31:39String templates
  16. 32:22Temp directories and files
  17. 33:31Directory streams
  18. 34:55Cloud-native configuration
  19. 35:57Java as shell script
  20. 37:26Endless streams
  21. 38:50Decoding JWT
  22. 40:18List operations
  23. 41:44Records and destructuring
  24. 42:51Dynamic proxies
~/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.