4 ms·
How does one go from > Rule 5. Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-
by ndr 3y ago
How does one go from
> Rule 5. Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming.
to
> Rule 5 is often shortened to "write stupid code that uses smart objects".
"smart objects" left such a bad taste in my mouth, the original rule is so much better albeit lengthier.
- dbalatero 3y agoSeems pretty clear to me, what issue are you having?
- sowbug 3y agoWrite code that naturally follows from well-structured objects.
- cgdub 3y agoI think Rob Pike would agree that "smart objects" is the wrong way to think about it: https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html https://commandcenter.blogspot.com/2012/06/less-is-exponenti...
- lowq 3y agoAgreed. I find that "smart objects" are much more difficult to make cohesive with one another. Punting your "smart" logic to a higher level is easier to understand, test, and change.