Hallo JUGFler,
diesmal wieder online über den Freifunk München findet am 26.07. ab 18:30 der Vortrag
Data-Oriented Programming in Java 20 (bit.ly/dop_java)mit Nicolai Parlog (
nipafx) statt.
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).
Der Vortrag findet auf Deutsch statt.
Bis nächsten Mittwoch & Grüße
Alex