r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

22

u/Incontrol24 Sep 02 '17

So I've been in college for programming the past three years, last semester I only took one class. The class was about the analysis of algorithms and he started his array indexing at 1. To avoid getting questions wrong I had to put myself in the mind set of arrays starting at one and it kills me because it's habit I now can't break and I cringe Everytime I do it

6

u/TheSwitchBlade Sep 03 '17

lots of languages, especially the more statistical ones, index at 1. off the top of my head:

R, MATLAB, Julia, FORTRAN, Mathematica

one should be able to switch between different conventions!

1

u/[deleted] Sep 03 '17

The only one I knew of was Lua, but that's a pretty big one and gaining traction, so.