#polymorphism

[ follow ]
fromHackernoon
3 years ago

Code Smell 308 - The Key to Safer, Cleaner, More Polymorphic Code | HackerNoon

Avoid methods returning Object, Any, or null; utilize polymorphic returns.
Java
fromHackernoon
3 years ago

Refactoring 029 - How to Replace NULL With Collection | HackerNoon

Replace nullable optional attributes with empty collections to eliminate null checks and leverage polymorphism.
[ Load more ]