2 ms·
Classes do too much if you dont have Roles. When you have Roles, you can build a class with Roles. like lego. Then you can have specific roles and build a clas
by hernan604 13y ago
Classes do too much if you dont have Roles.
When you have Roles, you can build a class with Roles. like lego. Then you can have specific roles and build a class with Roles.
If your OO doesnt support Classes, Roles, Types and method modifieds and functional programming, its outdated.
Seems like your outdated OO needs a metaclass system, up-to-date like Moose from perl.
- memracom 13y agoJust about any OO system can do this using interfaces, abstract base classes, mixins, traits etc. Yes it is a good way to approach design rather than building unique behavior from scratch over and over. But you don't need to go anywhere near PERL to accomplish this.