News for hackers. Stuff that matters.
Re:Antiobjects by jrockway on Monday December 07, 2009 @04:07PM (#982151)
This is not a new concept, but rather just exercising good programming technique. If you are modeling a collection of elements, and the elements need to be aware of themselves in relation to the other elements, then you need to model the container.

A simple example is an array. You don't ask an array element for the array's length or for the i-th array element; you model the container and let the container do that.

There are no comments on this comment yet.