Table-driven approachPublished bystrchr.comon •1 min readYou can often avoid repeating code by placing distinct parts of it into an array:TableDrivenApproachLearn moreShareLegalReport