Paul's Dev Blog –

Code not fit for human consumption.

Check Yourself (and your code)

without comments

So I just spent a large-ish amount of time trying to figure out why, when I updated one data table from an XML feed, it updated a completely separate table that was not even related to the updated one.

The answer was on one tiny little line of code. That line of code executed a function in the other XML feed processor for the other table and dataset. The problem was that I copied the function and changed a few variables (since the feeds were almost identical) but didn’t go through and check to see if anything else was going on.

The lesson for today: Check your freaking code. If you want to copy/modify a function to use elsewhere, make sure that there aren’t any little items that would make for a not fun programming day.


Written by iGonzo

August 20th, 2010 at 3:27 pm

Posted in Programming

Tagged with , ,

Leave a Reply