Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore data-oriented programming (DOP) principles and their implementation in Java 21 through this informative conference talk. Learn about modeling data as data, utilizing pattern matching for polymorphic behavior, and understanding the four key principles of DOP: comprehensive data modeling, immutability, boundary validation, and making illegal states unrepresentable. Discover how to leverage pattern matching as a safe and powerful mechanism for ad-hoc polymorphism, allowing for the definition of operations without overloading types with functionality. Gain insights into the differences between DOP and object-oriented programming (OOP), enabling you to make informed decisions on when to apply each paradigm in your software development projects.