Design patterns can feel abstract until you need one. For a software design project at the University of Lethbridge, I built a small bird simulator in C++ and used three classic patterns. Each one solved a specific problem I'd otherwise have solved with a pile of if statements.
What it simulates
Four species from two regions, each going through the seasons:
Bird Region Type
Golden Eagle North America eagle
White-tailed Eagle Europe eagle
Kea New Zealand parrot
Kākāriki New Zealand parrot
Each bird builds a nest from its own materials and does something different in spring, summer, fall and winter. A golden eagle courts in spring, raises chicks in summer and migrates in fall.…