Off By One Errors

Catch fencepost bugs by writing down the boundary convention and testing the endpoints instead of the middle. Use when a loop, slice, index, or range is off by a single element, drops the last item, or reads one past the end.

Amey-Thakur Updated 14 repo stars

File contents

Amey-Thakur/AI-SKILLS commit 1477faed5b

Frequently asked questions

npx get-skill add amey-thakur/off-by-one-errors