Software Engineering

Thursday, April 14, 2005

Eliminate Off-By-One Errors For Good!

Introduction

One of the most common programming errors is the off-by-one error. The Off-By-One error ...


Solution

Make all compilers limit programming language elements to one-based. Of course, old code will be identified and handled appropriately. Being consistent will prevent a lot of trips to API documentation and significantly decrease the number of bugs that occur in code.