Roy Osherove

View Original

Refactoring Dillema Video: (part 4) Building a Go Game Engine with TDD and Pair Programming

In this video (the rest are here) we focus on refactoring, and we try out the strategy pattern. We end up not being sure how well it worked out for the future, but we’ll see how things unfold in the next parts.

We also start using MightyMoose for continuous Tests running every time we save the files, and only running the affected tests. So far results are mized - it’s much slower than TestDriven.NET, but for a large project that has slow tests, Mighty Moose could be a god send.

Would love to know your thoughts if the refactoring here made sense, or if there was room for a different refactoring. The source code so far is at https://github.com/RayyLim/GoGame