~/talk

Java for Small Coding Tasks

Talkat JavaOne 2025 · 2025-03-18..03-20· [java]
links:none on file
slides:none on file

Argues Java is practical for small scripts by showing concrete tooling and demos: the Java launcher compiles in memory so no class files, unnamed classes let files omit boilerplate, IO.print/on and a magic import simplify code, and a backup script that randomly picks 10 files and verifies restore runs as a single file. Demonstrates a Zoom audio auto-switcher that works, shows JShell for regex fiddling, and uses JBang to fetch Maven deps via pseudo-comments; a Graal native image build runs about 4× faster.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53Why small Java?
  3. 5:07Launching scripts without compiling
  4. 8:28Implicit classes and main methods
  5. 11:50Using records for data
  6. 13:50Helpful language features
  7. 16:56Standard library for scripts
  8. 19:19Managing dependencies
  9. 23:22Exception handling in scripts
  10. 25:33File organization and IDE support
  11. 28:16Using Graal native images
  12. 29:23JShell and exploration
  13. 31:56JBang for scripting
  14. 34:11Jupyter notebooks in Java
  15. 44:06Conclusion
~/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.