Profile cover photo
Profile photo
Michael Christenson II
462 followers
462 followers
About
Posts

Post has attachment

Post has shared content
Though I have no well researched basis for any opinion, it would seem, given the nature of zero meaning (at the most practical level) nothing, that the first element, existing of the first something, should be 1.
The first programming languages named 1 as the first element of an array, consistent with mathematical and common practice. The C language named the first element as 0, perhaps motivated by efficiency on the machines of the day.

Since then, nearly all languages have followed C's example. But did we get it right? I have heard arguments about fence post errors that favor both 0 and 1.

Would we do better if the next generation of languages returned to the common practice?

Which is better?

[0 ... n - 1]
[1 ... n]
-
votes visible to Public
58%
Future arrays should start at 0
42%
Future arrays should start at 1
Add a comment...

Post has shared content

Post has shared content
Add a comment...

Post has shared content

Post has shared content

Post has attachment

Post has shared content
I launched a Kickstarter project today out of my frustration with voting. I think it's about time that we bring democracy online and into the 21st century. Introducing go.vote - simple, secure, online voting. Share my frustrations with paper-based, polling location-based voting? Check out the campaign!
https://www.kickstarter.com/projects/roryaronson/govote
Add a comment...

Post has shared content
Edward Snowden is an American Hero.

It is time that we bring him home.
Add a comment...

Post has shared content
Wait while more posts are being loaded