r/ProgrammerHumor • • Sep 18 '26

Meme almostDroppedTheCourse

Post image
581 Upvotes

79 comments sorted by

View all comments

Show parent comment

24

u/timangar Sep 18 '26

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

26

u/anticebo Sep 19 '26

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

7

u/antCB Sep 19 '26

Pascal let's you choose - superior 😂

1

u/simleiiiii Sep 19 '26

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 Sep 18 '26

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 Sep 19 '26

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.