Data Oriented Programming Inside Java Newscast, 29
Dataoriented programming focuses on modeling data as data (instead of as objects). Records for data and sealed types for alternatives let us model immutable data where illegal states are unrepresentable. Combined with pattern matching we get a safe, powerful, and maintainable approach to adhoc polymorphism that lets us define operations on the data without overloading it with functionality.
|
|