Back On Track
After the wild ramblings of yesterday I'm back at work on Smartphone programming with cheese. I've been playing around with reflection so that objects in the Compact Framework can be made to save and restore the important parts of themselves. I reckon that this could be quite useful, as there is no serialization support in CF. So far so good.
I've also been playing around with Test Driven Development. I'm coming to the conclusion that it may be the only way to travel. I'm having a bit of bother understanding how it could be made to work if your application has a Graphical User Interface but for building all the internal bits of your program I reckon it is wonderful. Essentially you write all the test code before you write the product.
You end up with a situation where you can press a button and see whether or not your code is right. This is especially useful if you refactor your solution (something you should not be afraid to do) because it is very easy to make sure that it still behaves itself. I'm definitely going to build some of the practical work for next semester around the test driven approach. It occurs to me that designing a test which proves a program works is a very good way of honing your understanding of the problem.