News for hackers. Stuff that matters.
Re:Nelua Programming Language by jimsimmons on Tuesday August 24, 2021 @04:57PM (#28294913)
Off by one errors are one of the most common type of errors. So it's a real gotcha for most programmers
Re:Nelua Programming Language by brabel on Wednesday August 25, 2021 @01:12AM (#28298257)
Off by one errors are also the easiest thing in the world to test. I never think much about whether I should do `n` or `n - 1`, I just write a test and then fix it if needed.