Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,365 members, 7,954,479 topics. Date: Friday, 20 September 2024 at 08:02 PM |
Nairaland Forum / Science/Technology / Programming / Array Indexes Shud Start From Pi,logten-ten Or -1+2 (648 Views)
Arduino,raspberry Pi,sensors Etc / Complete Array Of Countries And Nigerian States [open Source] / Converting Picture To Byte Array(blob) And Back To Picture (2) (3) (4)
(1) (Reply)
Array Indexes Shud Start From Pi,logten-ten Or -1+2 by asalimpo(m): 3:11pm On Aug 26, 2014 |
We're in d modern age. Computers languages shud b mor human like rather than humans bcmg more computer like. Afterall,they were made for man and not man for d computer. 1 in human languages stands for first among other things. E.g. Numero uno. "s/he came first" . It's never "i came zeroth". First,second and third price. Not zeroth,first and second price like is d case wen wrkg with arrays in c-like languages. Typical textbook explanation :"The first element in an array is at index zero" - 1 == 0! . How wont noobs b confused?. It doesnt make sense,logically speakg, so modern languages shud drop it. There's also nothing inherently smart about calling one zero. It's more intuitve to get d last element usg the size of d collection/array . E.g, lastElemnt = array[array.lenght] thn lastElemnt = array[array.lenght-1] . ;DWe're in d modern age. Computers languages shud b mor human like rather than humans bcmg more computer like. Afterall,they were made for man and not man for d computer. 1 in human languages stands for first among other things. E.g. Numero uno. "s/he came first" . It's never "i came zeroth". First,second and third price. Not zeroth,first and second price like is d case wen wrkg with arrays in c-like languages. Typical textbook explanation :"The first element in an array is at index zero" - 1 == 0! . How wont noobs b confused?. It doesnt make sense,logically speakg, so modern languages shud drop it. There's also nothing inherently smart about calling one zero. It's more intuitve to get d last element usg the size of d collection/array . E.g, lastElemnt = array[array.lenght] thn lastElemnt = array[array.lenght-1] . * Log 10 (base 10) = 1. Pi aint feasible. * |
Re: Array Indexes Shud Start From Pi,logten-ten Or -1+2 by Laryokeke: 11:23pm On Aug 30, 2014 |
great post. I have an idea. what if we build our own language? all we need is c and time and a little cash? if your answer is no then its clear why these things are like that. NO ONE HAS BOTHERED TO CHANGE IT |
Re: Array Indexes Shud Start From Pi,logten-ten Or -1+2 by asalimpo(m): 11:35pm On Aug 30, 2014 |
Laryokeke: great post. I have an idea. what if we build our own language? all we need is c and time and a little cash?building another language? Dyu know what u talkg about? You need a lotta cash and time and brains!! Not toy stuff. Mayb u shud create some libraries and see how it goes. One or two languages are buckg d trends . Julia (released in 2011/12 ) is d most recent. But there's gotta b sufficient innovation to justify d mad azz wrk involved in language creation. |
(1) (Reply)
Tell Us About Your Experience Building On Google And Raise Money For ... / Is There A New Feature In Nairaland / Help Review
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |