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)

Tuesday May 13, 2003
07:30 PM

Feeling a bit stupid

[ #12179 ]

So it's getting near the end of the workday, when I realize I don't have a lot of time to add features, but I factored out a complex conditional to a function and it was time to test it. I almost didn't since my code worked, but I figured that there was no harm in adding a few more tests.

It turns out that the conditional was always returning true ("and" and "&&" are not quite the same thing) and, because of a fluke, it made the rest of my code work at the expense of the performance hit of always updating database information regardless of whether or not the data had changed.

Weird the little things you discover when peering into the corners.

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.