Strategy Pattern and Null Object Pattern

Most of the code I’ve been writing is automating business processes. As a programmer I tell the computer what to do under specific conditions, and often those conditions change. Trying to make correct decisions can be paralyzing because it’s hard to know what new requirements will come. Thank goodness for software design patterns. Software design patterns can help write code that is resilient to future change. Here’s my take on the Strategy Pattern and the Null Object Pattern....

January 24, 2022 · 7 min · Hubert Lin