Saturday, December 24, 2011

Append / extend bug fix

Ever realize the fix for a bug while doing the most random activity unrelated to the code, or bug? I was driving last night and realized a fix in the car talking to my wife about the holidays. In the back of my mind, I was debugging an issue.

Dumb bug as well, I am actually embarrassed, but look here:



https://github.com/twixmit/twixmit/commit/2a0d77fd32bece8237a44d2241e6eeb9db494cd3#diff-1

I was appending a result list as a value in the receiving list rather than extending it. This caused the results expected to not return and so the list extension wasn't working. I couldn't figure out why yesterday when I was looking at it. I tested, was going to add logging, all the while, I used the wrong operator.

Oh yea, I've been working on a Twitter application and this is where the bug was. The application is @ http://twix-mit.appspot.com/.

No comments:

Share on Twitter