---
title: "Refactoring Dillema Video: (part 4) Building a Go Game Engine with TDD and Pair Programming"
url: "https://osherove.com/blog/2012/6/29/refactoring-dillema-video-part-4-building-a-go-game-engine-w.md"
canonical: "https://osherove.com/blog/2012/6/29/refactoring-dillema-video-part-4-building-a-go-game-engine-w.html"
published: "2012-06-29T09:33:40"
updated: "2012-06-29T09:33:40"
tags: ["Unit Testing", "video"]
author: "Roy Osherove"
description: "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…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

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

By Roy Osherove June 29, 2012 In [Unit Testing](https://osherove.com/blog/category/unit-testing), [video](https://osherove.com/blog/category/video)

**Historical article** · Originally published June 29, 2012; technical details may be outdated.

In this video ([the rest are here](http://artofunittesting.com/)) 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](http://continuoustests.com/) 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](https://github.com/RayyLim/GoGame) 

[![](https://osherove.com/img/video/yt-_s_lBh315Tc.jpg)Play videoTDD Pairing Session 4: Go Game Engine Raymond Lim](https://www.youtube.com/watch?v=_s_lBh315Tc)

## More in Unit Testing

[All posts in Unit Testing](https://osherove.com/blog/category/unit-testing)

- Jul 5, 2012

    ### [Video: (part 6 - Total n00b mistakes) Go Game Engine with TDD and Pair Programming](https://osherove.com/blog/2012/7/5/video-part-6-total-n00b-mistakes-go-game-engine-with-tdd-and.html)

- Jul 2, 2012

    ### [Video: (part 5 - A Test DSL) Go Game Engine with TDD and Pair Programming](https://osherove.com/blog/2012/7/2/video-part-5-a-test-dsl-go-game-engine-with-tdd-and-pair-pro.html)

- Jun 28, 2012

    ### [Video: (part 3) Building a Go Game Engine with TDD and Pair Programming](https://osherove.com/blog/2012/6/28/video-part-3-building-a-go-game-engine-with-tdd-and-pair-pro.html)

- Jun 27, 2012

    ### [Video: (part 2c) Building a Go Game Engine with TDD and Pair Programming](https://osherove.com/blog/2012/6/28/video-part-2c-building-a-go-game-engine-with-tdd-and-pair-pr.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
