tag:blogger.com,1999:blog-10678074.post4493765032437832024..comments2024-03-28T07:16:45.478+00:00Comments on making apps, making webs.: Dependency analysis, and a digression onto mock ducks.Unknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-10678074.post-30655505099954178972009-09-08T19:03:31.263+01:002009-09-08T19:03:31.263+01:00The last part sounds like the difference between D...The last part sounds like the difference between Data-structured and Data coupling.<br /><br />class Neighbor:<br />....def use_your_duck(self, duck):<br />........self.number_of_feathers = duck.number_of_feathers<br /><br />VS.<br /><br />class Neighbor:<br />....def use_your_duck(self, num_of_feathers):<br />........self.number_of_feathers = num_of_feathers<br /><br />Depends on how much about the duck you really need to know. If it is just the numbers of feathers just send that. If you have a lot more questions, it might be easier to just ship the whole duck over or locate the one processing ducks closer to the one producing them.nnishttps://www.blogger.com/profile/16520358584472742207noreply@blogger.com