James's Journal

Arg.... The bug which kept me occupied for an hour was a really dumb one. I accidentally put = instead of == in the comparisons between the genes. That meant that it always returned true, and therefore always gave me the same thing. Took a whole fucking hour to spot that - I had to replace all the conditional code in the program with absolute code, and work my way through, changing it back to normal, and seeing if it stopped working. Yeesh....

Re: So you think you are good...

I am very good. However, those bugs are arses to spot, because the if() statement returns true, rather than returning an error. Very hard to spot. That sort of thing comes from practice, rather than an incredible inherent ability (as I claimed to possess the other day :o)