News for hackers. Stuff that matters.
Re:Ask HN: What is the state of the art in OOP? by leon_ on Wednesday June 29, 2011 @05:58AM (#2708919)
After years of OOP I came to the conclusion that OO is no good. It has too many problems with parallelism - you have to use way too many kludges to make your shiny objects work in parallel.

For _me_ Data Oriented Programming is the future. My data does not need to be intelligent. For that I have my central data processors. As soon as there are no "objects" that need to talk to each other parallelism becomes so hassle free.

The only case I still like OO for is UI programming.

Re:Ask HN: What is the state of the art in OOP? by dkersten on Wednesday June 29, 2011 @06:50AM (#2709008)
I agree. Nowadays, I often provide an OO-based interface, but these objects are really just proxies to the non-OO data oriented internal system. I'm very much interested in multithreaded programming, so it often makes sense for me to dump OO in favour of more parallelism-friendly code.

I also find that functional programming is often a much more natural fit for solving a lot of problems than OO is. I find thinking in terms of streams, lists, trees, tables and higher order functions often maps much better to the data being modeled than an object hierarchy does and is often more parallelism, cache and out-of-order processing friendly than OO is. I don't really feel that OO is very suited to modern processors and certainly not to every problem we are trying to solve.

Re:Ask HN: What is the state of the art in OOP? by _0ffh on Wednesday June 29, 2011 @07:46AM (#2709112)
OO is a conceptual tool, and therefore it falls under the rule: "Use the right tool for the problem at hand." Same goes for DO. The problem are guys (and gals) who have learned how to hold a hammer (but little else), and therefore treat everything as a nail.

OO has undoubtedly been extremely overhyped. Unfortunately the backlash is not as hard as it should be, because by now OO is so firmly entrenched in the corporate sector that it will take (at least) one generation to merely flush it out of the fields where it doesn't belong at all.

That said, sometimes OO might be just what you want to finish the job cleanly and on time. [Edit: typos]

Re:Ask HN: What is the state of the art in OOP? by andrew1 on Wednesday June 29, 2011 @07:01AM (#2709029)
Do you have a link to what you consider to be a good description/definition/tutorial of "Data Oriented Programming"?
Re:Ask HN: What is the state of the art in OOP? by stonemetal on Wednesday June 29, 2011 @07:49AM (#2709123)
Whenever I run across Data Oriented Programming it is almost always called Data Oriented Design. You focus on your data and what transformation it needs to undergo to become output. Noel's blog is probably the best source of information for that style of programming I have seen.

http://gamesfromwithin.com/data-oriented-design

Re:Ask HN: What is the state of the art in OOP? by andrew1 on Thursday June 30, 2011 @03:09AM (#2713003)
Thanks, that's an interesting article.
Re:Ask HN: What is the state of the art in OOP? by iaskwhy on Wednesday June 29, 2011 @07:40AM (#2709099)
Almost off-topic: I voted you up because I am also interested in knowing a little more about this and thought by voting you up other people would see there's more people interested in it. Then I realised points are hidden...
Re:Ask HN: What is the state of the art in OOP? by JoachimSchipper on Wednesday June 29, 2011 @09:20AM (#2709364)
It will still be seen by more people, and let the author know that this was appreciated/to write more stuff like this.