Many words of programming wisdom have been written to promote the idea of low coupling between modules. “Prefer delegation over inheritance”, “The Law of Demeter” are examples of these words of advice. But why does delegation introduce less coupling then inheritance. And how does the law of Demeter reduce coupling? To understand these issues, we will look at the concept of “connascence” how it appears to unify many different design principles under an overall view of coupling. We will also talk about oatmeal and physics.
Mahalo to ThinkTech Hawaii (thinktechhawaii.com) and Panopto (panopto.com) for their video recording services.