Code smell: Frequently checking for null/undefined


Code smell: Frequently checking for null/undefined.

The root cause: Inconsistent data/settings.

When data is inconsistent, I normalize it before using it. Then the inconsistency is resolved in one spot.

Then I can "trust" the properties I need exist throughout the app. 👍

View original on X