Code Smell 208 - Don't Use Null for Real Places
Programming Tech Brief By HackerNoon

Code Smell 208 - Don't Use Null for Real Places

Aug 4, 2026
6:20
-(0)

About this episode

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.

Comments

Rate this episode

Episode Details

Author
HackerNoon
Show Type
full
Audio Format
audio/mpeg

We use analytics

We use Umami, a privacy-friendly analytics tool, to understand how visitors use this site. No personal data is collected and no data leaves our EU servers. You can accept or decline below. Privacy Policy