Slash Boxes
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 ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Tuesday October 02, 2001
04:25 AM


[ #846 ]

I'm refactoring 10K lines of code this week. That's after I did some static analysis of the execution paths last week using some hairy regexps to detect what methods were called from what functions, and display the results in a tree (mail me if you want the code - I guarantee it won't work for anyone but me).

Refactoring this code is non-trivial at best. It's all one big script - all 10,000 lines of it. It contains a whole heap of global variables, so moving stuff into modules is proving difficult. I'm using the idea of a context object passed between each function, and then variables can get stored in that object. This makes it very easy to move functions around, but it requires the change to using $context everywhere first. Slow going.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.