#polymorphism

[ follow ]
Scala
fromMedium
1 month ago

Type Classes: How Scala Achieves Polymorphism Without Inheritance

Type classes enable adding behavior to existing types without modifying them, avoiding inheritance limitations like tight coupling and inability to extend external types.
fromHackernoon
3 years ago

Refactoring 029 - How to Replace NULL With Collection | HackerNoon

Replacing nullable optional attributes with empty collections helps eliminate null checks in code, significantly enhancing maintainability and leveraging polymorphism in design.
Java
[ Load more ]