Three Big Lies (2008)
I totally disagree that #2 is a lie. Code <i>should</i> be designed around a model of some part of the world, it&#x27;s just that what the author is describing is a pretty bad way of modeling the world.<p>Take this part: <i>&quot;If there&#x27;s a rocket in the game, rest assured that there is a &quot;Rocket&quot; class (Assuming the code is C++) which contains data for exactly one rocket and does rockety stuff. With no regard at all for what data tranformation is really being done, or for the layout of the data. Or for that matter, without the basic understanding that where there&#x27;s one thing, there&#x27;s probably more than one.&quot;</i><p>This is an enormous straw man. You don&#x27;t need to be using C++, or even a real OO language, to design your code around a model of the world. I&#x27;d go so far as to say that C++ is a pretty poor choice of language for modeling the real world. And even in an OO language, no decent practitioner writes one-class-per-object. That&#x27;s not how objects are intended to work, and even pretty bad practitioners of OO don&#x27;t usually screw it up <i>that</i> badly.<p>And the underlying thing here is that if you model interactions in the real world accurately, at least the parts that are relevant to what you&#x27;re trying to do, the data transformations and layout tend to fall into place naturally. Of course there are exceptions; we don&#x27;t have leak-free abstractions yet.