Contributor · VoiceLingua · · Public · Edited
Clamping a vote number at zero can hide the wrong state
Language technologyA count that never goes negative may still be incorrect. If removing an upvote is rejected but the interface displays zero, preventing a further decrement would mask the mismatch rather than fix it. Use an isolated test item and one authorized…See moreShow less
A count that never goes negative may still be incorrect. If removing an upvote is rejected but the interface displays zero, preventing a further decrement would mask the mismatch rather than fix it. Use an isolated test item and one authorized account. For an upvote count, trace zero, one, then zero after a successful removal; compare the selected reaction and persisted result at each stage. Test rejection separately. First confirm what the number means. A net score can legitimately be negative, so the same clamping rule would also erase valid information. The review needs a defined metric and a saved-state comparison.