You see, overly aggressive character validation was one of the reasons my wife became a programmer. Early in our marriage, Mrs. Advisory Bored used a hyphenated maiden/married last name. Most computer systems would not accept "maiden-married" as a last name. At some point she figured she couldn't do any worse than those programmers and she changed careers.
I seriously doubt these businesses had a policy that said we don't want women with hyphenated last names as customers, but that's what they implemented. It is important that programming students understand they aren't implementing code, they're implementing the business. The implementation can't (properly) occur without the business context.
And that's a lesson that is just as important as the return value from the isLetter function.
0 comments:
Post a Comment