Trending
Opinion: How will Project 2025 impact game developers?
The Heritage Foundation's manifesto for the possible next administration could do great harm to many, including large portions of the game development community.
In another of today's Gamasutra features from GDC, High Moon Studio developers Noel Llopis and Sean Houghton introduced a unique build method called test-driven developme...
In another of today's Gamasutra features from GDC, High Moon Studio developers Noel Llopis and Sean Houghton introduced a unique build method called test-driven development (TDD) in this intermediate level lecture at GDC 2006. In it they discuss what TDD is, how others can use it in their development cycle, and the benefits of testing often - a primary focus of the methodology. This extract explains the basis for the system: "TDD is a cyclical, three-point procedure that moves as such: write test, write code, refactor, and back to write test. Llopis and Houghton are using TDD with C++ as well as Unreal code base. TDD is simple in both concept and implementation. “It comes down to one very simple cycle. You think of a very, very small feature and ... you write a very small test for that feature. We're talking about something very small,” said Llopis. Then, the programmer tests the piece of code. If it fails, he says, “you write some code to make that test pass. So now you have some passing tests. The next step is the crucial one for TDD: you refactor things,” changing the code in whatever necessary ways without changing its functionality. The whole cycle should take less than a minute, according to Llopis, stressing the importance of quick, small improvements. Although the process could take as much as three or four minutes, “if it takes ten minutes, it's not a good sign,” according to Llopis." You can read the full Gamasutra coverage on the matter, including detailed information on this neat solution (no registration required, please feel free to link to this feature from external websites).
You May Also Like