4 ms·
Design better software abstractions using bipartite composition (2019)
- golyi 3y agoThis feels unnecessarily fragmented and complex. Sorry don't see the benefits of designing your classes in this fashion.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- turkey99 3y agoSo the opposite of encapsulation?
- MattPalmer1086 3y agoNo, this is just separation of concerns. Each thing that was separated is now encapsulated and can be reused in different places.
- jprete 3y agoI've done this myself implicitly when trying to break down kitchen-sink classes. Often they were never really one class to begin with, so a lot of the contents can be separated into two or more new classes such that there are only a small number of dependencies between them.
- xtiansimon 3y ago“We can use composition to break our ship object into two concepts.” SHIP : PHYSICAL OBJECT On the surface this appears very “semiotic”