News for hackers. Stuff that matters.
Re:Principles of Data Oriented Programming by joe_the_user on Monday October 05, 2020 @06:11PM (#24692624)
Evidence that "DOP works so much better than OOP" is scant imo.

The rise and fall of paradigms that present themselves as panaceas is instructive. You have "structured programming", "object oriented programming", "functional programming" and now "data oriented programming".

What I'd like to see is paradigms paired with "where this works well" rather than paradigms sold based on "this will solve the software crisis", "this works better(unqualified by when)" and "if you're not doing this, you're doing it wrong". The later two claims leave a bad taste in the mouth of the casual users/observers, who gradually morph into active critics and sink the paradigm, wasting the good and useful parts of each (OOP has a vast universe of haters because it's most successful of the panacea-paradigms so far and as a panacea, there's much to hate here but still).

Re:Principles of Data Oriented Programming by vvanders on Monday October 05, 2020 @11:28PM (#24694465)
That's because data oriented programming has already succeed on a large scale, you just might not recognize it.

SQL is about as data-oriented as it gets, you have a programming model that's constrained and focused on data layout, structure and performance over being a general purpose language. There's a good article a while back about ECS that I can't find which talks about how most performant ECS start to mirror SQL and other row based data engines.

Re:Principles of Data Oriented Programming by discreteevent on Tuesday October 06, 2020 @05:15AM (#24695964)
It has succeeded but it has also failed. Using a shared database for many different functions/applications can be a disaster that eventually seizes up. Everyone is afraid to change the data structures because they don't know what it will break. It's a huge piece of global state with no isolation. Enter encapsulation and service orientation and bounded contexts.

So the parent is correct. It's not enough to say data orientation is a good thing. It needs to be compared with previous approaches (encapsulation) and then explain what the tradeoffs are.

Re:Principles of Data Oriented Programming by jeffffff on Monday October 12, 2020 @06:01PM (#24759945)
what is ECS in this context
Re:Principles of Data Oriented Programming by jeffffff on Monday October 12, 2020 @08:29PM (#24761110)
nevermind entity component system i knew that
Re:Principles of Data Oriented Programming by valenterry on Monday October 05, 2020 @07:59PM (#24693448)
It's not so much a rise and fall rather than refinement.

You still use if/then/else and repetition and subfunctions in OOP. But you restrict and replace some of their previous usage.

Same for functional programming: you take OOP but remove all the sideeffects. You still have objects which encapsulate data which can only be accessed in a certain way and can behave polymorphic. Mind that inheritance was never really part of OOP in general.

Now about DOP - not sure what exactly it adds on top of FP or if it is even an established and well defined term. Doesn't look to me like it, looks more of a bundle of recommendations right now.