Blog 4 Jordan Day

Visitor of the day


  • You
    from

Brag Stats

  • Comments:25,004
  • Articles:2,000
  • Article Hits:12,459,805
  • Unique Visitors:2,000,438
  • Rss Subscribers:3,052
  • Comment Subscribers:2,530
  • Spammers:136,315
  • Generated :757,671 spams
  • Monitoring:3,942,477 spam IPs
Powered by Qwaider Shield

Recent Comments

Check out the latest pictures on Sweetestmemories

« As I look at my wedding invitations...Hacking 2.0 »

Nasty BUG! 5000 lost comments

  • By: Qwaider

  • On:Thursday, June 26, 2008 1:27:44 AM
  • In:Thoughts
  • Viewed: (4851) times

    • Currently 4.7/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5

    Rated 4.7/5 stars (111 votes cast)

    Back in October I introduced some new cool features to this blog. Little did I know that I was also introducing a bug that is amazingly difficult to detect. See, if thing work, people tend to not notice that there are issues.

    Things did work. In fact, they worked very well, and I didn't give it a moment's notice!

    Until few days back I was adding a little enhancement that will automatically count the number of comments and their types and stores them. So whenever I query for them, they're already ready. But the numbers simply didn't add up!

    I was counting 38 comments in my new code, but only seeing 12 on the article. It was surreal! At first you will suspect the new code. Of course I must have screwed something up over there. I checked, double and triple checked and the code was just fine!

    I went into the database and started counting manually. To my surprise, my new code is actually working perfectly well! No issues what so ever.

    I went back to my old code, and found the weirdest thing ever. The code was right, it was totally right! So what the heck is wrong!

    I decided to look into the results being returned from my old code and sure enough there was a discrepancy! The comments were just not coming back! The weirdest thing ever!

    I tried to fix it for a little bit and decided to just ditch it, and rewrite it from scratch. The new procedure worked perfectly well, it was fast, and most importantly, ACCURATE!

    I guess I was in a hurry or something that I didn't test my old code very well. Ended up eating at least 5000 of your valuable comments! So, I'm really sorry for that!

    All is well now :)

    Other Memories Documented on June 26
    « As I look at my wedding invitations...Hacking 2.0 »

    Memories....

    و بعدين شو صار؟
    زقطوا الحرامي و للّا المية نشفت لحالها؟
    • #2
    • Maher
    • Windows Firefox Browser
    • Said
    • On: 6/27/2008 3:26:06 AM
    i hate debugging! and i suck at it! :S
    You too can have your Memories Documented

    Country:

    HTML has been disabled but if you wish to add any hyprlinks or text formating you can use any of the following codes: [B]bold text[/B], [I]italic text[/I], [U]underlined text[/U], [S]strike through text[/S], [URL]http://www.yourlink.com[/URL], [URL=http//www.yourlink.com]your text[/URL]

    Whisper (your comment will not be displayed)

    Please refer to Commenting policy


    Notify me of follow-up comments by email
    « As I look at my wedding invitations...Hacking 2.0 »
    Read by:
  • Guest-
  • |
  • Guest-
  • |
  • Guest-
  • |
  • Guest-
  • |
  • Guest-
  • |
  • Mariam Ayyash-
  • |
  • Guest-
  • |
  • Guests(11)-
  • |
  • Guests(78)-
  • |
  • Yassir-
  • |
  • Guest-
  • |
  • Guest-
  • |
  • Guests(279)-
  • |
  • Guests(2)-
  • |
  • Guests(329)-
  • |
  • Guest-
  • |
  • Guests(9)-
  • |
  • Guests(12)-
  • |
  • Guests(5)-
  • |
  • laila-
  • |
  • Guests(19)-
  • |
  • Guests(127)-
  • |
  • Guests(55)-
  • |
  • Summer-
  • |
  • Guests(13)-
  • |
  • Guests(18)-
  • |
  • Guests(25)-
  • |
  • Guests(10)-
  • |
  • Guests(13)-
  • |
  • Guest-
  • |
  • Guests(12)-
  • |
  • Hani Obaid-
  • |
  • iffffffff-
  • |
  • Khaled-
  • |
  • LostWithin-
  • |
  • Maher-
  • |
  • Mohanned-
  • |
  • Shaher-
  • |
  • Guests(29)-
  • |
  • Guests(6)-
  • |
  • Guests(2)-
  • |
  • Guest-
  • |
  • Guest-
  • |
  • Guests(3)-
  • |
  • Guest-
  • |
  • Guests(21)-
  • |
  • Guest-
  • |
  • Guests(253)-
  • |
  • Guests(21)-
  • |
  • Guest-
  • |
  • Guests(2)-
  • |
  • Guests(8)-
  • |
  • Mathew Gray-
  • |
  • Guest-
  • |
  • Guests(2)-
  • |
  • Guests(2)-
  • |
  • Guests(90)-
  • |
  • Guests(4)-
  • |
  • Guests(28)-
  • |
  • Guests(134)-
  • |
  • Guests(2)-
  • |
  • Guests(32)-
  • |
  • Guest-
  • |
  • Guests(10)-
  • |
  • Guest-
  • |
  • Guests(10)-
  • |
  • Guest-
  • |
  • Guests(12)-
  • |
  • Guests(82)-
  • |
  • Batoul-
  • |
  • Guests(3000)-
  • |
  • Lulu-
  • |
  • mab3oos-
  • |
  • Maioush-
  • |
  • Tinkerbella-
  • |
  • نورا-
  • |
  • Guests(4)-
  • |
  • Guests(2)-
  • |
  • Guests(13)-