Comments by "MrAbrazildo" (@MrAbrazildo) on "How To Build Quality Software Fast" video.
-
2
-
2
-
2
-
2
-
1
-
1
-
1
-
@timmartin325 Repeatability is relevant because, as I said: "3) A change in the code can lead to a bug that once passed in a test".
I agree that human tests catch bugs that are impracticable by automated tests. Once I noticed a bug that took 2 years to arise, in a user point of view. It was caused by an overflow in some bits of a variable, that had pass through an optimization rework. That was expected, indicating the hit on the wall. However, the variable worked with +1 for reading and -1 for writing, to fit the bits field. Outside the class, a local variable (representing the field) in a f() work with the values normally. So, when hit the wall, some tasks were made, and the value has been writing back to the var. The point is that later I implement future checks for that memorized value, but it was wrote not with the overflow value anymore (because it wouldn't fit) - instead of it, a reset value due to bit truncation.
But this was not enough to raise the bug, because the +1 for reading make it come back to an acceptable value, at the beginning. And combining that with certain characters alignment, consequences passed to be acceptable in a broken geometry: starting (only) from the end (triggering the overflow), completing it at the beginning! (Geometry could be broken, but the alignment should stay in the same direction) . So the victim became unmovable. Plus, a bad luck of characters too close hid the cause.
To appear, it has to attend to several steps: the overflow not entirely solved locally, the reset (which could crash or lead to absurd) being hidden by the +1 (for read), some specific alignments, certain characters, starts with character(s) in the "wall", complete it with character(s) at the beginning. And a bad luck make me took more time than I should. I solve it fast, however - I may be inspired.
I baptized it as Age of Aquarius Bug:
"When the moooooon is in the 7th Hooooouse
And Jupiter aligns with Mars
Then peace will guide the planets
And loooOOOOve WILL STEER THE STARS!"
1
-
1