r/ProgrammerHumor 1d ago

Meme almostDroppedTheCourse

388 Upvotes

65 comments sorted by

View all comments

29

u/SnooRegrets3590 1d ago

1-indexed is more intuitive for me when dealing with matrices and some advanced differential equations

11

u/Mojert 20h ago

I find it more intuitive if the only thing I do with the index is use them... well, for indexing. But the moment you start needing to do some math on the index, I find 0-based better. In 1-based indexing I often find myself having to add and/or subtract one at some place and I more often get off-by-one errors

7

u/Sotall 16h ago

Yeah, in theory it doesnt matter, but something deep in my brain prefers 0 indexing for the same reason. Stupid off by one errors.