Reactions to story from CodeBetter.Com - Stuff you need to Code Better!
What arrays and pointers have in common - or - Why arrays start at zero
http://codebetter.com/ blogs/ karlseguin/ archive/ 2008/ 05/ 06/ what-arrays-and-pointe...
Every now and again someone asks why do array indexes start at zero rather than one? It's a good question, because the 1st item in the array is...well..the 1st, not the 0th. Although the answer is easily found on the web, I figured it would tie in nicely with where we left off last time - looking at memory in .NET. Not surprisingly this stems from the good old C days (and perhaps even earlier). You see, back then, arrays and pointers were highly related. I actually remember thinking of them as identical things with different syntax. Once you see that arrays are just syntactical sugar to pointers, you'll understand why everything starts at zero.
Reactions / posts that link to this post
-
Squeezed Links: May 2008
http://www.codesqueeze.com/squeezed-links-may-2008/If it seems like I have been posting a little less then normal, it is because I am running around trying to get things ready for the new baby. The wife and I are expected our first little one any day now and we are pretty excited about it. Here are May’s best links from around the web. Workaholics Fixate On Inconsequential Details - Absolutely loved this revelation, and it really makes you think about people who always seem to find extra work to do. A must read. Why Arrays Start At Zero - Karl hits one out of the park on an oldie but a goodie…honestly, never even contested why this is the case. Why Unit Testing Is So Important? - An article about an old hat argument but was very well written. The Perfect Job Interview Question - The few articles Jurgen has written on the topic of finding resources have been good (probably because I think in the same fashion), but this article was especially good. Why I’m A Better Software Developer Than You - An egotistical look at why some developers are better than others (but we all know that I am the best :P) [Advertisement] - Atlassian provides zero-friction bug tracking and continuous integration solutions for software development teams. Visit Atlassian for free 30 day product trials. Copyright © 2008 - {codesqueeze} - Squeezed Links: May 2008
-
Dew Drop - May 7, 2008
http://www.alvinashcraft.com/2008/05/07/dew-drop-may-7-2008/Silverlight/WPF/Popfly EntitySpaces and Silverlight Demo - Part 1: Propagating EntitySpaces Data (Jon Davis) Simplify Using 2D Graphics in WPF and Silverlight (Andrej Benedik) DrawingBrush and Deep Clone in Silverlight (Tamir Khason) Cracking Open Zip Files in Silverlight 2 Beta 1 (Josh Twist) Creating Music For Popfly Game Creator (Ben Anderson) AutoComplete for Silverlight TextBoxes (Nikhil Kothari) http://www.codeplex.com/sdlsdk (Jimmy Schementi) .NET LINQ to XML, Namespaces and VB (Daniel Moth) Command-Query Separation and Immutable Builders (Matthew Podwysocki) What Arrays and Pointers Have in Common - or - Why Arrays Start at Zero (Karl Seguin) - Link of the Day Recent ADO.NET Entity Framework Provider News - Demos and Downloads (David Sceppa) Stream Processing XML in IronPython and Deserializing XML with IronPython (Harry Pierson) F# in 20 Minutes - Part I (Chris Smith) LINQ.Flickr 1.3 (Mehfuz) SharePoint as a WCF Host (Sahil Malik) - This link doesn’t appear to be working right now, but the title piqued my interest. So, I’m hoping it will be working very soon. Visual Studio 11 More Visual Studio Shortcuts You Should Know (Amit Raz) Becoming a Jedi - Part 1 of N (James Kovacs) Miscellaneous What’s Your Circle of Interest? (Paul Stovell) Addict-o-matic: The Newest Metasearch (Mike Gunderloy) 25 WYSIWYG Editors Reviewed (Vitaly Friedman & Sven Lennartz) The Bookshelf (James Kovacs) stackoverflow Podcast #4 (Jeff Atwood) Measuring Programmer Job Satisfaction (Jess) Office Open XML Is Now an ISO Standard! (Cornelius J. van Dyk) Blogs From the Live Mesh Team (Mesh Team) SQL Server SQL Server 2005: Get Full Information About Transaction Locks (Mladen Prajdić) PowerShell PowerShell + WPF (Rob Relyea) Next Windows PowerShell Will Have GUI, Remote Management Support (Scott M. Fulton, III) Link Collections Interesting Finds: May 6, 2008 (Jason Haley) Visual Studio Links #24 (Darren Stokes) Links Today (2008-05-06) (Matt Hinze) Silverlight Cream for May 06, 2008 — #268 (Dave Campbell) The Morning Brew #88 (Chris Alcock) Link Listing - May 6, 2008 (Christopher Steen) Book of the Day Essential Windows Communication Foundation (WCF): For .NET Framework 3.5 (Microsoft .NET Development Series): Steve Resnick,Richard Crane,Chris Bowen: Books Technorati: .net development, popfly game creator, silverlight, wcf, wpf, sharepoint, powershell, f#, ado.net entity framework
More rising blog posts
-
Entertainment »
And again... -
Business »
New Yorker cover spotlights McCains houses, foreclosure crisis. -
Lifestyle »
Are Americans Losing Their DIY Skills? -
Politics »
Balloting Process for President -
Sports »
US Open September 6 Schedule of Play -
Technology »
Leaked Photo of 4th Generation iPod Nano in Packaging?
Recent posts from CodeBetter.Com - Stuff you need to Code Better!
-
MSDN Article on "Prism" went to press
3 days ago -
A frustrating GDI bug
3 days ago -
MSpec v0.2
3 days ago