The World According to Nick
My take on Software, Technology, Politics, and anything else I feel like talking about.
Wednesday, March 17, 2004

The Programmer's Secret Handshake 

Zero or One based collection? Eric Gunnerson from Microsoft has been a blogging machine lately... and covers a question someone recently asked which is why in today's modern programming world do we still have 0 based instead of 1 based arrays... after all, when humans start counting, we start at 1... not 0.

Understanding how zero-based indexing works is the secret handshake of the programming world. We all started not knowing the secret handshake, but over time we learned and even began to like the secret handshake, and now we don't know any other way to shake hands.

Or as one of my professors in college used to say... 0 is a perfectly good number... so why not use it?

Comments:

Post a Comment

About Me



Name: Nick
Home: Wauwatosa, WI, United States

I'm a Software Consultant in the Milwaukee area. Among various geeky pursuits, I'm also an amateur triathlete, and enjoy rock climbing. I also like to think I'm a political pundit.


 View My Profile

Archives
 Home Page

Subscribe to this Feed

Search Archives
Previous Posts
If Kerry was Misquoted... Why Didn't He Just Say So?
Blogosphere 1, New York Times 0
The Dangers of DHMO... Makes City Officials Look L...
You Are Here
More Data Structure Goodness
Debugging the Debugger
LiteScribe
Programming in the Blue
Not a Cow... But a Comet?
Intellectual Diversity

Personal Links
Carnival of the Badger
The Coding Monkey
del.icio.us Links
Flickr Photos
Blog Critics Reviews





Blogroll Me!

music
books
video
culture
politics
sports
gaming

www.flickr.com
This is a Flickr badge showing public photos from Nick_Schweitzer. Make your own badge here.

Credits

Blogcritics: news and reviews







This page is powered by Blogger. Isn't yours?

Weblog Commenting and Trackback by HaloScan.com

RSS-to-JavaScript.com

Listed on BlogShares

Design By maystar