Sveriges mest populära poddar

airhacks.fm podcast with adam bien

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

92 min • 23 juni 2024
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

Kategorier
Förekommer på
00:00 -00:00