Testing a fix to an overzealous response to a magic number.



  • First I went through all the config needed to test, only to find out that the actual review task had a different set of test instructions saying the other instructions were wrong.

    Then I downloaded and configured this program thinking that's what I was supposed to be testing.

    Finally, I think, just look at the code to see what the deal is.

    #define SomeLength 5
    newIndex = currentIndex
    newIndex = currentIndex - SomeLength

    ???

    look back previous revision

    // wtf magic number, I burninate you, because raisins
    newIndex = currentIndex - 5
    newIndex = currentIndex

    Basically, instead of fixing our in-house simulator program I'm using to test with, he broke the product, because magic number.



  • This post is deleted!

Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.