Let's Code Text Adventure
Shows the development of a small homework, such as is found on introductory programming courses, using TDD.
- Project repo: https://github.com/luontola/text-adventure
- Episodes9
- Total length4 h 5 min
- Latest episode2010-11-28
Episodes
| Project Setup & End-to-End Test | ||
|---|---|---|
| Let's Code Text Adventure #1 | MP4 | |
Here is a mini series of developing a new application. It's a text adventure game based on a homework assignment near the end of one introductory programming course. The homework assignment said that from the students it usually takes 10-15 hours to make this application - and even then a framework for the UI, input handling and game loop was already provided (which I didn't have nor want). I was at that level 10 years ago, back in 2000, and I think that by now I have learned programming. ;) During these first six episodes (in 2½ hours) I manage to implement the needed functionality, but it will still take a couple more episodes to clean up the code to meet my quality standards. Though there is some overhead in using TDD, it will pay itself back quite soon when the development progresses. I'm guessing the flipping point to be around 2 hours, so roughly the size of this application, but it would be interesting to hear some research on that. |
||
| Domain Logic | ||
| Let's Code Text Adventure #2 | MP4 | |
| Let's Code Text Adventure #3 | MP4 | |
| Let's Code Text Adventure #4 | MP4 | |
| Text UI | ||
| Let's Code Text Adventure #5 | MP4 | |
| Let's Code Text Adventure #6 | MP4 | |
| Refactoring | ||
| Let's Code Text Adventure #7 | MP4 | |
Here are the final episodes of Let's Code Text Adventure, where the code is refactored to be what the code wants its design to be. I clean up some primitive obsession smells and move some functionality to where it belongs. |
||
| Let's Code Text Adventure #8 | MP4 | |
| Let's Code Text Adventure #9 (end) | MP4 | |