26.07.2023: Data-Oriented Programming in Java 21
Update: Die Slides zum Vortrag sind hier.
Data-oriented programming models data as data: records for entities and sealed types for alternatives. Combined with pattern matching we can define operations on the data without overloading it with functionality.
In data-oriented programming (DOP), we model data as data and polymorphic behavior with pattern matching. This talk will introduce the concept of DOP and its four principles:
- model the data, the whole data, and nothing but the data
- data is immutable
- validate at the boundary
- make illegal states unrepresentable
We’ll also explore how to use pattern matching as a safe, powerful, and maintainable mechanism for ad-hoc polymorphism on such data that lets us define operations without overloading the types with functionality. The talk ends with a juxtaposition to OOP, so you not only learn how to employ DOP but also when (not).
Nicolai Parlog (@nipafx) is a Java enthusiast with a passion for learning and sharing, online and offline. He is a developer advocate at Oracle.
Ablauf
Bitte meldet euch bei Nuudle an.
Der JUGF-Stammtisch findet als Online-Veranstaltung auf dem Konferenzserver des Freifunk München statt.
Wir sind ab ca. 18:15 Uhr dort eingeloggt. Es wäre schön, wenn der Realname angegeben und die Kamera aktiviert werden.
Wir veranstalten ein Meeting, keine Konferenz. Wir freuen uns daher, wenn wir uns gegenseitig sehen und hören können. Eine Aufzeichnung findet nicht statt.