News for hackers. Stuff that matters.
Re:Why Python uses 0-based indexing. It's because of slices by ihuman on Wednesday October 23, 2013 @07:03PM (#6602374)
I had to use matlab the other day. It still starts at one. The first time I used it, that confused me too.
Re:Why Python uses 0-based indexing. It's because of slices by aidos on Wednesday October 23, 2013 @08:34PM (#6602729)
I've just started using Octave (for the coursera machine learning course) and it also starts at 1. Takes a few exercises to reaclimatise. More annoying is that it doesn't auto broadcast matrix operations like numpy does (and the slicing doesn't feel as powerful either).