Really? I have no idea who that artist is. Is it someone I’ve just forgotten about from when we were younger?
- 0 Posts
- 4 Comments
Joined 2 years ago
Cake day: July 16th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Another good one, entirely browser based, is https://learngitbranching.js.org
JustAnotherRando@lemmy.worldto Open Source@lemmy.ml•Is GitHub down for y'all too?English3·2 years agoSeems to be working fine for me in Indiana. Looked at the Lemmy repo and could look through the repo. I didn’t like try to push anything to a repo of my own though.
It absolutely should not have been named zeroth() because the reasoning for that is purely pedantic and ignores WHY arrays are 0 indexed. It’s not like the people in the early days of writing programming languages were saying “the zeroth item in the array” - they would refer to it using human language because they are humans, not machines. Arrays are 0 indexed because it’s more efficient for address location. To get the location in memory of an array item, it’s startingAddress + (objectSize * index). If they were 1 indexed, the machine would have to reverse the offset.
Function/Method names, on the other hand, should be written so as to make the most sense to the humans reading and writing the code, because the humans are the only ones that care what the name is. When you have an array or list, it’s intuitive to think “I want the first thing in the array” or “I want the last thing in the array),” so it makes sense to use first and last. That also makes them intuitive counterparts (what would be the intuitive counterpart to “zeroth”?).