Simply Early is a tactic for reducing complexity derived from data as soon as possible. If a routine expects an array as input, a null value should be converted to an empty array as soon as possible, protecting later code from the Novel Scenario [[NovelScenario]] of a null value. This only works if the null value does NOT convey meaningful Information.

This tactic is a compliment to [[ComplicateLate]] Complicate Late. A Guard Clause [[GuardClause]] is an example of Simplify Early. This could be considered Defencive Programming.

#software #complexity