News for hackers. Stuff that matters.
Re:Ask HN: What's the best technical talk you've heard? by ghotli on Monday April 08, 2013 @07:59PM (#5515551)
View layers can get complex, but you can at the very least encapsulate complexity and have it interact with other parts of the system in a simple well defined way. Have the separate layers of the application communicate via interfaces that keep the ingress, egress points of data flow well defined. Things like event pub/sub systems can further decouple things, the observer pattern, etc.
Re:Ask HN: What's the best technical talk you've heard? by dougk16 on Monday April 08, 2013 @08:36PM (#5515711)
I meant that if I were designing a general-purpose retain-mode GUI library or 3d engine from the ground up and wanted to incorporate his principles as much as possible, how could I do that? Maybe a retain-mode approach is just inherently (too?) complex?

Correct me if I'm wrong, but I think your answer is in reference to using such a library, and I can certainly see how my question implied that, so sorry for the confusion if this is the case. Thanks for your answer regardless.

Re:Ask HN: What's the best technical talk you've heard? by ghotli on Monday April 08, 2013 @09:05PM (#5515819)
At that level it's similar tradeoffs. Consider what the code would look like if it were purely functional. In fact a good answer to your question would be for a thought exercise take a look at how XMonad is implemented in Haskell. That would be a completely different approach to the large, heavily coupled messes that OOP can sometimes lead to when modeling the state as mutable object members.
Re:Ask HN: What's the best technical talk you've heard? by dougk16 on Monday April 08, 2013 @09:16PM (#5515870)
Thank you, I will look into that. Sorry, forgot to upvote you...fixed!
Re:Ask HN: What's the best technical talk you've heard? by snprbob86 on Monday April 15, 2013 @12:26AM (#5549733)
This is something I've been experimenting with. My intuition is that the scene graph will look a lot more like an AST made from algebraic data structures than an OOP actors network. Down that road, the system looks like an optimizing compiler with the really tricky added bit of iterating in response to user input.