[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Selenophobia
- From: Tim Hill <drtimhill@...>
- Date: Sat, 25 Mar 2017 13:54:20 -0700
> On Mar 25, 2017, at 3:42 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
>
> I've always found the determination of people to hate 1-based indexing
> puzzling. After all, it's not an offset, it's an index. But each to
> their own. I'm a happy Lua scripter and there's too much damn magic in
> Python.
>
It often comes down to what you learn first. The very same people would complain bitterly about 0-based indexing in C/C++/Java etc if they had learned Lua first. I mentally mark down any developer who cannot think past his/her own coding prejudice.
I admit when I first learned Lua it took me a while to flip my brain over, but it was refreshing to not have to worry about “len - 1” nonsense in for loop termination. Though I STILL to this day type != instead of ~= … argh muscle memory!
—Tim