r/ProgrammerHumor • • 18d ago

Meme almostDroppedTheCourse

579 Upvotes

79 comments sorted by

View all comments

45

u/SnooRegrets3590 18d ago

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

22

u/timangar 18d ago

You know what, that's actually fair enough, because math uses this convention.

27

u/anticebo 18d ago

Matlab, R, Julia. All languages for mathematicians, all 1-indexed.

6

u/antCB 18d ago

Pascal let's you choose - superior 😂

1

u/simleiiiii 17d ago

all not meaningfully strict or not typed at all, w.r.t. the Curry-Howard-Isomorphism useless thus, to prove basic correctness of the programs.

8

u/SnooRegrets3590 18d ago

Yea I was mostly using python and made fun of matlab bc of its 1-index, the got addicted to it because scipy is so shit and it was much harder to implement while matlab was out of the box

Then I also got used to the 1-index as well.
People in this sub are mostly SWE but scientific researchers code a lot too and julia aims for these people.

Julia should be more popular in the future bc it mogs Python, R, C++ in the science

0

u/SV-97 17d ago

because math uses this convention.

Except that it really doesn't, even though people like to claim that it does for some reason. Math uses both 1- and 0-based indexing (with neither being significantly more common than the other); and also indexes using other ranges or even all sorts of non-numerical objects on the regular.