Data-Oriented Programming in Java - Nicolai Parlog


Details
Zu diesem Treffen dürfen wir euch wieder ein besonderes Highlight präsentieren: Nicolai Parlog, Java Developer Advocate bei Oracle und Host des Inside Java Newscast auf youtube kommt zu uns und präsentiert seinen Vortrag zu "Data-Oriented Programming with Java".
In den neuesten Java Versionen gibt es dank Records und verbesserter Unterstützung für Pattern Matching viele neue Möglichkeiten Probleme mit Java sehr elegant zu lösen. Zur Umsetzung können Ansätze wie "Data-Oriented Programming" helfen um die Programmstrukturen dafür bereitzustellen.
Wir freuen uns bereits auf einen interessanten Vortrag :)
/Abstract
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).
/Bio
Nicolai (aka nipafx) is a Java enthusiast focused on language features and core APIs with a passion for learning and sharing – in articles, newsletters, and books; in tweets, videos, and streams; in demo repos and at conferences – more on all of that on nipafx.dev. He’s a Java Developer Advocate at Oracle and organizer of Accento. That aside, he’s best known for his haircut.
COVID-19-Sicherheitsmaßnahmen

Data-Oriented Programming in Java - Nicolai Parlog