And, not to continue to harp on it, but this is an example of automated unit testing. The main section of my editor has my test class code (ProductTest), which grabs a test Product from my database, and then runs tests on it. Each method of ProductTest is a single test. The bottom pane is where the test results appear once I click the little play button at the top next to the 'Diva' label (the e-commerce site is for a local quilt shop named The Sewing Diva).
As I go, I'm going to run a myriad of these automated tests on my code. This helps eliminate bugs/errors because it forces me to run a test for everything I want to do. It's a bit more tedious than just writing code and hoping it works right off, but it ensures my code is rock solid from the ground up. And, really, in the long run it does save time because errors are caught early, and are up front rather than buried in code.
As I go, I'm going to run a myriad of these automated tests on my code. This helps eliminate bugs/errors because it forces me to run a test for everything I want to do. It's a bit more tedious than just writing code and hoping it works right off, but it ensures my code is rock solid from the ground up. And, really, in the long run it does save time because errors are caught early, and are up front rather than buried in code.