Angular Tic-Tac-Toe

As a bit of Friday fun, I wrote a simple tic-tac-toe game using Angular. It can be found at https://still-ridge-62999.herokuapp.com/.

This time I practiced test-driven development while writing this small app. My first impressions of the practice are that I understand why people advocate for it; it helped me think through the requirements for each method that I wrote in a disciplined sort of way, and made sure that I kept my methods small, modular, and DRY. I also found that it made me more aware of edge cases and possible error states in my code. Finally, it was satisfying to watch each test go from failing to passing as I filled in the body of each method.

Of course, the real value of TDD will come through on much larger projects than this simple, one-component tic-tac-toe game. But everyone has to start somewhere, and I’m glad that I took this opportunity to start adopting the practice.