Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'I'm at 695 days' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I'm at 695 days
Authored by: hamarkus on Oct 13, '07 05:48:12AM

My usual approach to a situation where the code does seem to be correct but the result not, is a brute force testing cycle.

Making several copies of my library, I would first cut it in half (in a random way, eg, alphabetically), then half it again and again until I am left with only a handful of songs. After verifying that the result is correct for these handful of songs, I would then run the script over all intermediate steps and plot the logarithm of the total playing time over the different slices of the library. I should then be able to fit a straight line to that. If there is significant sharp bend are jump in the data, then I would have found the part of the library that is giving suspicious results. Start again with this part to isolate the problem further.

I very much doubt however that I will go to that length.



[ Reply to This | # ]