1. 4FIPS
  4. APPS
  5. CODE
  7. ABOUT


Forums dedicated to the projects hosted at 4FipS.com

Skip to content

Decoupling & Tradable Quality Hypothesis - The articles

> Coding, hacking, graphics, game dev, and such...

Decoupling & Tradable Quality Hypothesis - The articles

Postby fips on Tue Feb 22, 2011 12:44 pm

There are two articles that have caught my attention recently:

The first one deals with Decoupling, which is a topic that has exercised my brain for quite a long time. I'm very ambivalent about this as I incline towards two strictly opposite approaches: smart pointers and object ids, they both have strong pros and cons. The article, however, brings another possibility that I haven't taken into consideration so far. Instead of returning shared_ptrs, one can return weak_ptrs and manage corresponding shared_ptrs internally, which enables the framework to explicitly control object's life-time. I quite like this idea! It's worth mentioning that the article was published on #AltDevBlogADay, which is a lively platform full of interesting articles related to game development.

(Actually, my current hobby project uses a hybrid system: The internal objects are explicitly managed by the framework, however, they are indirectly manipulated by proxy objects that exist on the client side, referenced by shared_ptrs. The framework is responsible for keeping internal objects in sync with the proxies, incl. object creation and destruction, so even the life-time is managed indirectly. In other words, the internal data structures dynamically adapts to the client state.)

The second article introduces the idea of Tradable Quality Hypothesis. It nicely sums up my frustration about typical commercial development and the values that influences the decision making process. Highly recommended reading!

User avatar
Site Admin
Posts: 163
Joined: Wed Nov 12, 2008 9:49 pm
Location: Prague

Decoupling & Tradable Quality Hypothesis - The articles



Return to General Discussion, Tech Talk & Blog

Who is online

Users browsing this forum: No registered users and 1 guest