4 ms·
A 10x programmer would learn from this bug, think through why their current architecture could produce such bugs, write a test suite to ensure that they wont ha
by username90 7y ago
A 10x programmer would learn from this bug, think through why their current architecture could produce such bugs, write a test suite to ensure that they wont happen again and alter their testing procedures for finding reported bugs in the future.
- Vinnl 7y agoAlright, so in this case, the bug was produced by querying open tabs for a tab with the property `active: true` (not our API). Apparently, that produces not only the currently focused tab, but the tab that's in focus in every open window - another search param was required to narrow it down to the focused window as well. What lessons about our architecture could we draw from this? What kind of test suite should we write?