Program JavaZone

Foredrag Onsdag 2. september

Java Patterns: Why, How, and When Not

Room 1

Engelsk 1 t Java "Pattern Matching" "Data-Oriented Programming" "enhanced switch"

Cay Horstmann

After growing up in the German countryside, I studied in the United States (M.S. in computer science from Syracuse University, and a Ph.D. in mathematics from the University of Michigan in Ann Arbor). For four years, I was VP and CTO of an Internet startup that went from 3 people in a tiny office to a public company. I taught computer science at San Jose State University and held visiting appointments at universities in Germany, Switzerland, Vietnam, and Macau. In my copious spare time I write books and articles on programming languages and computer science education.

Java is gaining features to support pattern matching and a "data-oriented" programming style. In this presentation, I explore when this programming style is beneficial, and how you should structure your programs to take advantage of it. You will learn the syntax of pattern matching, as it has evolved, and you will get a glimpse at further enhancements in upcoming versions of Java. Just as importantly, I will show you how to recognize confusing and error-prone usages of pattern matching, which the new features also enable. You will come away with a mental model when to use pattern matching and "data orientation" now, how to prepare for future enhancements, and when to stay away.

Java programmers of all experience levels who are intrigued by the notions of pattern matching and data-oriented programming

  1. From Data Engineering to Knowledge Engineering in the blink of an eye Room 2
  2. Quantum-Ready Java: A Practical Guide to Post-Quantum Cryptography Migration Room 3
  3. The Magic of OpenTelemetry: Rewriting Your App in Production Room 4
  4. Norsk forskning: Hva gjør norske organisasjoner med agentisk utvikling Room 5
  5. Passkeys: Enklere enn du tror. Slik implementerer du støtte for det Room 6
  6. No More Magic: Mastering the Explicit Kotlin Stack with Ktor, Exposed and Koin Room 7
  7. Frå plastkort til protokoller: Deling av data fra EU si digitale identitetslommebok Room 8
  8. Knowing without Knowing Room 6
  9. How to Keep Secrets from your Agent Room 6