Ground Zero
Definition:
Where the lack of testing with 0 is the source of a lot of bugs.
Code Example:
// ensuring that there’s a value for and then testing that it’s off screen
// but if element.top is equals to 0, results goes wrong
if (element.top && (element.top < viewport.top)) {
hidePane();
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring