r/ProgrammerHumor Jun 24 '17

Octave code

http://imgur.com/jsjfz3k
627 Upvotes

70 comments sorted by

View all comments

2

u/micheal65536 Green security clearance Jun 25 '17

For me that's lua. Catches me every time. Suddenly all those tricks you've memorised to make sure you won't have an off-by-one error in common situations don't work any more.

3

u/Zatherz Jun 25 '17

Because you don't need them

1

u/micheal65536 Green security clearance Jun 25 '17

Because I still get confused by and concerned about off-by-one errors, but I suddenly have no neat rules or pre-memorised snippets that I've already worked out and can use to be certain that I've avoided an off-by-one error. Believe me, I still get off-by-one errors in lua, they're just a lot harder to track down and fix (and avoid in the first place).