Click here to Skip to main content
15,907,905 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.

 
GeneralRe: english question Pin
Nelek13-Mar-20 15:11
protectorNelek13-Mar-20 15:11 
GeneralRe: english question Pin
maze316-Mar-20 0:29
professionalmaze316-Mar-20 0:29 
GeneralRe: english question Pin
Nelek16-Mar-20 8:56
protectorNelek16-Mar-20 8:56 
GeneralRe: english question Pin
kalberts16-Mar-20 11:36
kalberts16-Mar-20 11:36 
GeneralRe: english question Pin
Nelek16-Mar-20 11:41
protectorNelek16-Mar-20 11:41 
GeneralRe: english question Pin
maze316-Mar-20 0:24
professionalmaze316-Mar-20 0:24 
GeneralRe: english question Pin
Nelek16-Mar-20 8:58
protectorNelek16-Mar-20 8:58 
GeneralRe: english question Pin
kalberts16-Mar-20 12:09
kalberts16-Mar-20 12:09 
maze3 wrote:
Most arrays are zero based.
You mean, like in Fortan? 1-based. Pascal? Arbitrary base. ALGOL? Arbitrary base CHILL, aka ITU Z.200? Arbitrary base. What about APL, the ultimate array language? 1-based.

Or anywere outside the programming world? If you are guided to take the third row to the right, do you then count: Road zero, road one, ...? If your coworker tells that is first child is named John, do you then ask what his oldest one is named? If you are asked to bring a message to the second person from the left, do you then count: 0, 1, 2 to decide who to deliver the message to? Do you often see books paginated from zero? Parking lots or apartments numbered from zero?

Outside the C class of programming languages, arrays, sequences and related phenoena are pratically always either 1-based or arbitrarily based.

There is one exception that I learned when working on a project with Korean participants: While our age concept is based on the number of years you have completed - you are not one year old until you have completed a full year (0-based). Koreans count the year you are in: From birth, you are in your first year (1-based). And since they also count moon years, not sun years, if you ask for their age, they may have to think for a couple of seconds to calculate their age in Western terms. (Note: With 50+ million people, there may be differenc subcultures with different traditions - I am referring to what was explained to me by those active on this project).

You could also count time as zero based: Until an hour has passed since midnight, you do not call it "hour one". At that time, most of us are asleep, so we don't care that much. But note that even in AM/PM cultures, we do not like the zero base, but refer to 12:30 PM, even though in a 0-base time we really ought to refer to it as 0:30 PM
GeneralThought of the Day Pin
OriginalGriff12-Mar-20 5:42
mveOriginalGriff12-Mar-20 5:42 
GeneralRe: Thought of the Day Pin
W Balboos, GHB12-Mar-20 5:47
W Balboos, GHB12-Mar-20 5:47 
QuestionRe: Thought of the Day Pin
lopatir12-Mar-20 6:28
lopatir12-Mar-20 6:28 
AnswerRe: Thought of the Day Pin
OriginalGriff12-Mar-20 6:43
mveOriginalGriff12-Mar-20 6:43 
GeneralRe: Thought of the Day Pin
lopatir12-Mar-20 6:54
lopatir12-Mar-20 6:54 
GeneralRe: Thought of the Day Pin
OriginalGriff12-Mar-20 7:01
mveOriginalGriff12-Mar-20 7:01 
GeneralAnd now, the chefs are going as well. Pin
OriginalGriff12-Mar-20 5:40
mveOriginalGriff12-Mar-20 5:40 
GeneralRe: And now, the chefs are going as well. Pin
W Balboos, GHB12-Mar-20 5:49
W Balboos, GHB12-Mar-20 5:49 
GeneralRe: And now, the chefs are going as well. Pin
dandy7212-Mar-20 5:51
dandy7212-Mar-20 5:51 
GeneralRe: And now, the chefs are going as well. Pin
lopatir12-Mar-20 6:24
lopatir12-Mar-20 6:24 
GeneralRe: And now, the chefs are going as well. Pin
OriginalGriff12-Mar-20 6:26
mveOriginalGriff12-Mar-20 6:26 
GeneralRe: And now, the chefs are going as well. Pin
Richard MacCutchan12-Mar-20 6:09
mveRichard MacCutchan12-Mar-20 6:09 
GeneralRe: And now, the chefs are going as well. Pin
OriginalGriff12-Mar-20 6:18
mveOriginalGriff12-Mar-20 6:18 
GeneralRe: And now, the chefs are going as well. Pin
OriginalGriff12-Mar-20 6:29
mveOriginalGriff12-Mar-20 6:29 
GeneralRe: And now, the chefs are going as well. Pin
Richard MacCutchan12-Mar-20 6:56
mveRichard MacCutchan12-Mar-20 6:56 
GeneralRe: And now, the chefs are going as well. Pin
Rage12-Mar-20 7:23
professionalRage12-Mar-20 7:23 
GeneralCCC - Am I still up tomorrow ? Pin
pkfox12-Mar-20 4:15
professionalpkfox12-Mar-20 4:15 

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.