Code Smell 208 - Don't Use Null for Real Places
This story was originally published on HackerNoon at: https://hackernoon.com/code-smell-208-dont-use-null-for-real-places.
Learn why using (0, 0) for missing coordinates creates bugs and how a polymorphic Location type keeps Kotlin models accurate.
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #code-smells, #null-code-smell, #kotlin-null-handling, #sentinel-values, #missing-coordinates, #location-modeling, #polymorphism, #hackernoon-top-story, and more.
This story was written by: @mcsee. Learn more about this writer by checking @mcsee's about page, and for more stories, please visit hackernoon.com.
Learn why using (0, 0) for missing coordinates creates bugs and how a polymorphic Location type keeps Kotlin models accurate.
You May Also Like

The Good Tech Companies
HackerNoon

a16z Show
Andreessen Horowitz

ITSPmagazine
ITSPmagazine, Sean Martin, Marco Ciappelli

TBPN
John Coogan & Jordi Hays

TED Tech
TED Tech

Jack Hopkins
Jack Hopkins

A Bootiful Podcast
Josh Long

CriptoMonedas TV
CriptoMonedas TV

The Times Tech Podcast
The Sunday Times

Applelianos
Applelianos
Community discussion