Embed presentation
Download as PDF, PPTX










The document discusses the differences between composition and inheritance/mixins in object-oriented programming. It notes that mixins can violate the single responsibility principle and be difficult to test since the code is not contained in one place. Composition is recommended instead as it allows calling methods on child instances, only using necessary code, and avoids naming conflicts. Links are provided discussing replacing inheritance with composition and decomposing fat models.









