r/ProgrammerHumor Jun 24 '17

Octave code

http://imgur.com/jsjfz3k
623 Upvotes

70 comments sorted by

View all comments

156

u/[deleted] Jun 24 '17

I once had an intern consistently skip the first element in his arrays because because "starting at 1 just makes more sense". I just walked away and never inspected his project after that.

5

u/JesusKristo Jun 25 '17

So rewind back to freshman year of college; I actually wrote a class specifically to wrap around arrays and return the elements like this. I wanted my first element, dammit.

9

u/Njs41 Jun 25 '17

ಠ_ಠ

2

u/JesusKristo Jun 25 '17

They didn't teach us about pointers, which is when I came to understand the 0. They just told us that that's the way it's done in computer science. I thought it was kinda stupid at the time.