« Glow+blur+fullscreen | Main | Tournament 1/29 »

January 27, 2012

Comments

I was really looking forward to you posting about TDD in game development when I read that announcement too. I use it every day in my web development job but it has always stymied me as far as applying it to games when I am messing around with those in my free time.

The most important feature in TDD to me is the optimal protection of future changes that may break other system functionality.IMHO Systems with a lot of undefined and unrelated functionality and components with huge class hierarchies, would benefit the most from TDD because TDD will force you to organize your system in a modular testable and heavy change tolerant way. But in games the life cycle is shorter, changes are less because you have defined set of goals to achieve and if not and you are still just exploring,the changes are visible to you, TDD would be a huge overkill for things like AI and Physics because there behavior is not controlled by you and TDD requires that. Yes you can TDD the code that builds up these components but IMHO it still an overkill.
I have used TDD to write algorithms that have many changing inputs and outputs. Again it protected me from shooting myself in the leg and it worked well.

PS. I never used TDD in games or even close to ship one :))

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.