You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 applies to creating modular Ruby programs.