Quote:
Originally Posted by Cinisajoy
I can cook and I still burn dinner on occasion. (Usually the cream style corn).
Also do not try to shred lettuce with the kitchenaid shredder.
|
Yes, obviously. I can design software and thus program, but sometimes, stupid mistakes still happen. Sometimes it can be a one character mistake:
if (x = 5) { do_stuff(); }
vs.
if (x == 5) { do_stuff(); }
In the first statement, x will
become 5. x is now larger than 0. In most languages, a result larger than 0 is counted as "true", so in this case, do_stuff() will always run. In the second statement, x is
compared to 5, and do_stuff() will only run if x is indeed 5.
One character difference... huge wrong results/errors/bugs/crashes