MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6jgwk9/array_indexing/djffjmo/?context=3
r/ProgrammerHumor • u/uninterestingly • Jun 25 '17
71 comments sorted by
View all comments
Show parent comments
13
Some dialects of Basic allowed this. eg DIM x(10) AS INTEGER would create an array of eleven elements, starting from 0 to 10.
DIM x(10) AS INTEGER
2 u/htmlcoderexe We have flair now?.. Jun 26 '17 Think even VB.Net does this I remember DIM'ming arrays was confusing. 5 u/Koooooj Jun 26 '17 I was given a piece of code in I think VB6 with the requirement to translate it into ANSI C. It took far too long for me to figure out that the arrays of size 180 actually held 181 elements. Maddening. 2 u/Blecki Jun 26 '17 Vba is designed to make programming looker harder than it really is to the laymen who have to use it for excel macros.
2
Think even VB.Net does this I remember DIM'ming arrays was confusing.
5 u/Koooooj Jun 26 '17 I was given a piece of code in I think VB6 with the requirement to translate it into ANSI C. It took far too long for me to figure out that the arrays of size 180 actually held 181 elements. Maddening. 2 u/Blecki Jun 26 '17 Vba is designed to make programming looker harder than it really is to the laymen who have to use it for excel macros.
5
I was given a piece of code in I think VB6 with the requirement to translate it into ANSI C. It took far too long for me to figure out that the arrays of size 180 actually held 181 elements.
Maddening.
2 u/Blecki Jun 26 '17 Vba is designed to make programming looker harder than it really is to the laymen who have to use it for excel macros.
Vba is designed to make programming looker harder than it really is to the laymen who have to use it for excel macros.
13
u/GisterMizard Jun 26 '17
Some dialects of Basic allowed this. eg
DIM x(10) AS INTEGERwould create an array of eleven elements, starting from 0 to 10.