PLAY PODCASTS
Object-Oriented Programming (OOP) vs. Data-Oriented Programming (DOP) in Java
Episode 299

Object-Oriented Programming (OOP) vs. Data-Oriented Programming (DOP) in Java

A conversation with Nicolai Parlog about Object-Oriented and Data-Oriented Programming with Java

airhacks.fm podcast with adam bien · adam-bien.com

June 23, 20241h 31m

Audio is streamed directly from the publisher (s3.eu-central-1.amazonaws.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

An airhacks.fm conversation with Nicolai Parlog (@nipafx) about:
the advantages and challenges of Object-oriented programming (OOP) vs data-oriented programming (DOP) in Java, using Java record classes, sealed interfaces, and switch expressions to implement business logic outside of data classes, the advantages of polymorphism and transparent persistence in specific use cases, the pitfalls of deep inheritance hierarchies and instance of checks, modeling data with records and sealed interfaces, validating data at the boundaries and ensuring immutability, using switch expressions and pattern matching for type-based logic, the advantages of data-oriented programming for maintainability and safety, applying data-oriented programming to web services and data pipelines, combining enums with records for complex configurations

Nicolai Parlog on twitter: @nipafx