This post introduces Data-Oriented Programming (DOP) and contrasts it with Object-Oriented Programming (OOP). It highlights the principles of DOP such as separating data from logic, using immutable data structures, and maintaining data in a valid state. The post includes a practical exercise implementing the game Yahtzee using
Table of contents
1. Overview2. Principles3. Data-Oriented vs. Object-Oriented Programming4. The Data Model5. Implementing the Behaviour6. ConclusionSort: