Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Friday January 31, 2003
01:37 PM

Refactoring

[ #10324 ]

Okay, so you're sick of hearing me talk about testing. You've been warned :)

For various reasons, I haven't gotten much done on my current work project. Small database design issues, refactoring, and other considerations have put the brakes on it. I'm building a Web-based inventory control system and for four days, I didn't not fire up my browser once. I relied exclusively on my passing tests (over 700 at this point) to ensure that the stuff worked. After those four days and much effort, I had redesigned much of the code, refactored out more than I thought I could and restructured parts of the database. I fired up my browser, logged in, and everything just worked. Four days, many CVS commits and massive work on a system and it performed flawlessly -- without my ever having run the application during that time. Humbling.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • How many lines of code did you delete?

    • A quick check on my account handler reveals a net total of about 70 lines of code removed due to refactoring. These are lines that will not need to be duplicated in any of the handlers and I expect that we will have about 30 handlers. Thus, we have about 2,000 lines of code that we will not have to write and debug, but still more functionality than we had before.