Comment on Revisiting the principles of data-oriented programmingparentComments−ajuc4yI think in Data Oriented Programming it's fine for your code to depend on data structure. You want to separate code and data, not to decouple them.As for why see for example Command Query Separation (the data oriented way) vs Tell Don't Ask (the encapsulate everything way).
Comments
I think in Data Oriented Programming it's fine for your code to depend on data structure. You want to separate code and data, not to decouple them.
As for why see for example Command Query Separation (the data oriented way) vs Tell Don't Ask (the encapsulate everything way).