What is a function — CCA-F Exam Prep

A developer at a fintech startup wrote the credit card validation logic 47 times. In 47 different places across the codebase.
Then they discovered a bug in the validation. It was accepting expired cards. Fixing it meant finding and updating all 47 copies. They found 43. The other 4 stayed broken for six months -- silently accepting expired cards and processing $220,000 in charges that should have been rejected.