Programming Tech Brief By HackerNoon
Programming Tech Brief By HackerNoon · Aug 4, 2026 · 6:20
Listen in the Podli app 🎧
Follow your favourite podcasts, listen offline and in the car with CarPlay and Android Auto, and always pick up where you left off. Free to try.
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.
Episodes: Programming Tech Brief By HackerNoon