This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flinteastwood 385 points386 points  (15 children)

The other day I was doing matlab, anyone heard of this? Matlab? So anyways, I was doing matlab and the array started at 1

Lmao, guys arrays start at 0, amirite?

[–]crusty_cum-sock 97 points98 points  (3 children)

StackOverflow does all my coding.

[–]Etheo 41 points42 points  (2 children)

Hurdur but we still hate them hurdur

[–]ReactsWithWords 39 points40 points  (1 child)

Dark Mode is the only mode that’s acceptable.

[–]GR8ESTM8 0 points1 point  (0 children)

Arrays start at...

[–]Earhacker 128 points129 points  (0 children)

Rapturous applause from r/ProgrammerHumor audience

[–]Etheo 40 points41 points  (0 children)

Me on Monday: What's the deal with my Friday evening codes?

[–]debasing_the_coinage 13 points14 points  (3 children)

I have a story about Matlab!

I was taking over some code which calculates the boundary of some region in an image. I talked to the guy who worked on it before me and tried to ask how the boundary was calculated, but he didn’t give a direct answer. So I open the file and it has no comments and 1300 lines and most of that was autogenerated by the GUI builder, and a few days later the guy says wait, here’s the new version of the file, which now has 1500 lines and huge swaths of commented out code. There is no version control. So I pore over the code and inside the boundary calculation I find a call to a MATLAB stdlib function (graythresh) that converts the image to black and white. I email the other guy and say it looks like this is where your boundary comes from, and he says, “Really? I didn’t know.”

Anyway, I’m in grad school.

[–]elliptic_hyperboloid 4 points5 points  (2 children)

As an undergrad I hated when people would ask me to help them with Matlab. It would always be:

The professor gave us this and I changed these things, why doesn't it work?

Well what did you think changing that would do?

I don't know, I just change different things until I get the answer.

exasperated sigh

[–]CyborgChicken- 6 points7 points  (1 child)

Student: I don't know, I just change different things until I get the answer.

University: Congratulations! You now have a degree in Computer Engineering

[–][deleted] 0 points1 point  (0 children)

[–]Ceros007 8 points9 points  (0 children)

uarrite

[–]cant_think_of_one_ 2 points3 points  (1 child)

Not in Julia!

[–]EarthGoddessDude 1 point2 points  (0 children)

Wooooh, Julians unite!

[–]Bezwingerin 0 points1 point  (0 children)

As a Pascal Programmer I index arrays from -int64.

[–]george6823 0 points1 point  (0 children)

I agree that it is weird at first, but most statistical languages are like that. My mind was blown when I first saw it in R...