#polymorphism

[ follow ]
Scala
fromYouTube
1 week ago

Venners & Sommers: Thinking in Scala 3 Types [Scala Days 2025]

Understanding the Scala 3 type system is essential for effective programming.
fromMedium
4 months ago

Type Classes: How Scala Achieves Polymorphism Without Inheritance

Imagine you're working with a third-party library that provides a User class. You need to add JSON serialization to it, but you can't modify the source code. Of course you can create a wrapper class or extend it, but that feels clunky and breaks existing code that expects the original type. This is where type classes shine. They're one of Scala's most powerful patterns, and they're the secret ingredient in popular libraries like Cats, Scalaz, and Circe.
Scala
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 ]