Episode Details

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

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

Episode 299 Published 1 year, 9 months ago
Description
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

Listen Now

Love PodBriefly?

If you like Podbriefly.com, please consider donating to support the ongoing development.

Support Us