Today’s exercise was Markdown which is refactoring some poorly written Markdown parsing code while still passing all the test cases. I think I spent most of today just doing nothing hoping to get better soon.

Someone did much better than me, they had an array of line items with a regex and replacement function. Their code then did a single reduce call to call them one by one on the return value of each prior step to get the resultant value. Very nice. However, I didn’t copy it since no point just regurgitating their code. Also I am happy enough that I stopped staring blankly ahead in space long enough to do anything at all. Yes, still sick, but I am getting better.