> Regarding TDD (Test Driven Development) look at the following websites: > In short - You write a test, Write the code, Run the tests, Refactor. > Then repeat the whole process... The first 3 steps should be > completed in under a minute. As I said, it is very different to > traditional programming style, but once mastered, you can't think of > programming any other way. > Well my only real worry was whether I needed to do exception catching on the strToInt calls, but I cannot imagine a dataset where my other functions wouldn't ensure I have valid inputs for those.
I'm checking your links though - it may well be worth running through it. I should just mention this function is actually part of a lazarus project, but since it's not visual in any way and doesn't use the LCL at all, I reckoned fpc-pascal would be a more appropriate place to ask questions. A.J. -- "there's nothing as inspirational for a hacker as a cat obscuring a bug by sitting in front of the monitor" - Boudewijn Rempt A.J. Venter Chief Software Architect OpenLab International www.getopenlab.com www.silentcoder.co.za +27 82 726 5103 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal