Click here to Skip to main content
15,914,594 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
BillWoodruff19-Sep-13 20:13
professionalBillWoodruff19-Sep-13 20:13 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
pkfox19-Sep-13 20:52
professionalpkfox19-Sep-13 20:52 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
ExcellentOrg19-Sep-13 21:14
ExcellentOrg19-Sep-13 21:14 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
daniel_bingamon20-Sep-13 0:59
daniel_bingamon20-Sep-13 0:59 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts20-Sep-13 1:36
kalberts20-Sep-13 1:36 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Sentenryu20-Sep-13 2:24
Sentenryu20-Sep-13 2:24 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts20-Sep-13 3:22
kalberts20-Sep-13 3:22 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Sentenryu20-Sep-13 3:41
Sentenryu20-Sep-13 3:41 
Member 7989122 wrote:
Say, if you create a highly specialized program for processing some data related to WW2, and your array of events is indexed by years 1939 to 1945,


And what would be your events? sub arrays? I said alread, the structure for this kind of data is a hastable.

You don't have an event every day, so why allocate 2190+ spaces for events?

Most of the time people want to index arrays by any value that doesn't start at zero or one, they're trying to index sparse data. That's a bad idea. We have high level languages, but the computer is still a computer, if we forget how he deals with our instructions, we start to write code that wastes resources and is slow. Also, how would your program deal with a classified file that got public revealing really important events that occured between years 1939 to 1945 but wasn't public? because that never happened before, you know...
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

"Given the chance I'd rather work smart than work hard." - PHS241

"'Sophisticated platform' typically means 'I have no idea how it works.'"

GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts20-Sep-13 4:12
kalberts20-Sep-13 4:12 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
englebart20-Sep-13 3:18
professionalenglebart20-Sep-13 3:18 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts20-Sep-13 3:25
kalberts20-Sep-13 3:25 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
PIEBALDconsult23-Sep-13 4:03
mvePIEBALDconsult23-Sep-13 4:03 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters23-Sep-13 5:39
Michael Waters23-Sep-13 5:39 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts24-Sep-13 23:05
kalberts24-Sep-13 23:05 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters25-Sep-13 3:28
Michael Waters25-Sep-13 3:28 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
englebart20-Sep-13 3:34
professionalenglebart20-Sep-13 3:34 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
etkid8420-Sep-13 4:03
etkid8420-Sep-13 4:03 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters23-Sep-13 5:41
Michael Waters23-Sep-13 5:41 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts25-Sep-13 1:25
kalberts25-Sep-13 1:25 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters25-Sep-13 3:37
Michael Waters25-Sep-13 3:37 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
RefugeeFromSlashDot20-Sep-13 5:21
RefugeeFromSlashDot20-Sep-13 5:21 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts25-Sep-13 0:44
kalberts25-Sep-13 0:44 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
RefugeeFromSlashDot25-Sep-13 2:56
RefugeeFromSlashDot25-Sep-13 2:56 
GeneralFor the racing car fans Pin
vonb19-Sep-13 3:17
vonb19-Sep-13 3:17 
GeneralRe: For the racing car fans PinPopular
PB 369,78319-Sep-13 3:26
PB 369,78319-Sep-13 3:26 

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.