From: John Feminella Date: 2011-05-08T09:51:27+09:00 Subject: Re: Cross access between instance variables >> You add fish to a tank, not tanks to a fish. > > POV - you could as well say you "assign" a tank to a particular fish :-) Perhaps, but in this model, at least, the fish can't exist without the tank, while the same is not true of a tank without the fish. So that's a strong motivation for considering putting fish in a tank, rather than the other way around. > And actually, if I were implementing this myself, I'd probably separate > the Tank from the Environment it provides and have the Fish observe > its environment. There's lots of ways to skin this cat (as there are with pretty much any software problem). I was just picking what I thought was the STTCPW. ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ On Sat, May 7, 2011 at 20:31, Hassan Schroeder wrote: > On Sat, May 7, 2011 at 4:36 PM, John Feminella wrote: >> You add fish to a tank, not tanks to a fish. > > POV - you could as well say you "assign" a tank to a particular fish :-) > > And actually, if I were implementing this myself, I'd probably separate > the Tank from the Environment it provides and have the Fish observe > its environment. > > As always, YMMV. > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > twitter: @hassan > >