Tuesday, May 3, 2011

Learning can take a while

Today I learned not to start learning the thing I want to post about at 9pm. And while I'm not a big believer in Murphy's Law, starting the post off by saying something is easy, before you've actually done it... That's just asking for trouble.

Monday, May 2, 2011

Lesson learned the hard way

Today's lesson:

  For any program you are writing, if you don't have a test for it, you may as well not have written it. By test, I mean an easy way to validate that the program is doing what you think it is doing, and especially that it is saving the information that you think it is saving. The test needs to be easy,so you can repeat it as often as possible after making changes.

  If you're programming in Java, I recommend writing JUnit tests. I'll soon be looking into whether C# has an equivalent testing framework.

  I also learned today that InputEventArgs.timestamp and Environment.TickCount are measured in milliseconds, while DateTime.Ticks and TimeSpan.Ticks are measured in hundreds of nanoseconds. That's a 10K difference in magnitude, approximately the same as the difference in magnitude between these two lessons. Therefore, this still counts as one (point oh-oh-oh-one) thing I learned today ;)

Sunday, May 1, 2011

Each day, I will post one thing I've learned.

Today's lesson - it takes nine minutes and thirty nine seconds to create a new blog on Blogger. Twice, because I created it on the wrong account at first. Customization can wait until later.

BTW - the post took another four minutes. See you tomorrow.