Click here to Skip to main content
15,910,981 members

Survey Results

Should array indexing start at 0 or 1?   [Edit]

Survey period: 7 Mar 2011 to 14 Mar 2011

Old school VB devs and old school C devs know the answer. What's your feeling in this modern, enlightened era?

OptionVotes% 
01,11587.93
115312.07



 
GeneralI understand zero is better for computers... Pin
JChrisCompton14-Mar-11 11:35
JChrisCompton14-Mar-11 11:35 
GeneralRe: I understand zero is better for computers... Pin
Klaus-Werner Konrad6-Jun-11 14:02
Klaus-Werner Konrad6-Jun-11 14:02 
GeneralRe: I understand zero is better for computers... Pin
JChrisCompton7-Jun-11 11:54
JChrisCompton7-Jun-11 11:54 
GeneralTrivial Point with Option Base Pin
CaWxMan14-Mar-11 9:50
CaWxMan14-Mar-11 9:50 
GeneralRe: Trivial Point with Option Base Pin
Klaus-Werner Konrad14-Mar-11 10:46
Klaus-Werner Konrad14-Mar-11 10:46 
GeneralRe: Trivial Point with Option Base Pin
Colin Mullikin6-Jun-11 10:56
professionalColin Mullikin6-Jun-11 10:56 
GeneralRe: Trivial Point with Option Base Pin
Klaus-Werner Konrad6-Jun-11 13:52
Klaus-Werner Konrad6-Jun-11 13:52 
GeneralRe: Trivial Point with Option Base Pin
Colin Mullikin7-Jun-11 4:03
professionalColin Mullikin7-Jun-11 4:03 
GeneralRe: Trivial Point with Option Base Pin
yakshasa15-Mar-11 5:19
yakshasa15-Mar-11 5:19 
GeneralWell... Pin
Lutosław12-Mar-11 1:15
Lutosław12-Mar-11 1:15 
JokeIt should start from sqrt(-1) in a high-level programming language. PinPopular
S. Fischer11-Mar-11 2:03
S. Fischer11-Mar-11 2:03 
GeneralRe: It should start from sqrt(-1) in a high-level programming language. Pin
Emilio Garavaglia13-Mar-11 21:26
Emilio Garavaglia13-Mar-11 21:26 
GeneralThe real answer is 42 PinPopular
Yusuf10-Mar-11 17:29
Yusuf10-Mar-11 17:29 
GeneralRe: The real answer is 42 Pin
Toniyo Jackson10-Mar-11 23:57
Toniyo Jackson10-Mar-11 23:57 
GeneralRe: The real answer is 42 Pin
Ed Nutting11-Mar-11 8:31
Ed Nutting11-Mar-11 8:31 
GeneralRe: The real answer is 42 Pin
567890123411-Mar-11 2:48
567890123411-Mar-11 2:48 
GeneralNot just in computing PinPopular
Kamran Behzad10-Mar-11 17:01
Kamran Behzad10-Mar-11 17:01 
GeneralRe: Not just in computing Pin
xawari11-Mar-11 9:57
xawari11-Mar-11 9:57 
GeneralRe: Not just in computing Pin
Emilio Garavaglia13-Mar-11 21:23
Emilio Garavaglia13-Mar-11 21:23 
AnswerRe: Not just in computing Pin
JChrisCompton14-Mar-11 11:50
JChrisCompton14-Mar-11 11:50 
GeneralBe practical - do what comes naturally Pin
Kamran Behzad10-Mar-11 12:12
Kamran Behzad10-Mar-11 12:12 
GeneralRe: Be practical - do what comes naturally Pin
Jay Gatsby11-Mar-11 22:56
Jay Gatsby11-Mar-11 22:56 
GeneralRe: Be practical - do what comes naturally Pin
PJ Arends12-Mar-11 6:14
professionalPJ Arends12-Mar-11 6:14 
GeneralRe: Be practical - do what comes naturally Pin
Jay Gatsby14-Mar-11 15:13
Jay Gatsby14-Mar-11 15:13 
That may be so in some cases, but consider that my example is a theoretical to begin with. To the point, I can turn around and say "yeah, but suppose you're programming in some god-forsaken language that completely hides pointers from you entirely, and uses references rather unintelligently." The example I gave was to illustrate the fact that memory is going to waste, period. Whether you're wasting a 4-byte pointer or a 500-megabyte data cell, it's still a waste, and my point still stands--that's just silly.

Suppose you have an algorithm which uses 4 byte pointers to 500 megabyte data cells that requires 125,000,000 copies of this list to be made in order to do some computation. one 4 byte pointer times the 125,000,000 times it's wasted is 500 megabytes total of wasted memory--hah, you see what I did there? I can contrive extreme examples all day, but the point is still the same, a waste is still a waste, regardless of size.
-Gatsby

GeneralRe: Be practical - do what comes naturally Pin
Mr Nukealizer13-Mar-11 12:54
Mr Nukealizer13-Mar-11 12:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.