Todays exercise was to validate a phone number for correctness and return the number as digits only. This is a perfect place to use a regular expression. Years ago I would have been too timid to use them. I probably didn’t need the linq code to count the digits in the string.  This time I was smart enough to peek at the test cases and see what kind of exception they were expecting.

For the todo app I watched four more parts in the video series (continue from part 9 tomorrow). I also removed a database column I didn’t need (rails added its own, use that). I wrote my first rescue block (exception handler) in ruby which was immediately replaced with a rescue from block. We also did some api versioning. It looks like I did it correctly previously but now it is in a v1 path too.