
Code Smell 208 - Don't Use Null for Real Places
transcript
show notes
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.





