I bet the date wasn't in ISO 8601
memes
Community rules
1. Be civil
No trolling, bigotry or other insulting / annoying behaviour
2. No politics
This is non-politics community. For political memes please go to !politicalmemes@lemmy.world
3. No recent reposts
Check for reposts when posting a meme, you can only repost after 1 month
4. No bots
No bots without the express approval of the mods or the admins
5. No Spam/Ads/AI Slop
No advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.
A collection of some classic Lemmy memes for your enjoyment
Sister communities
- !tenforward@lemmy.world : Star Trek memes, chat and shitposts
- !lemmyshitpost@lemmy.world : Lemmy Shitposts, anything and everything goes.
- !linuxmemes@lemmy.world : Linux themed memes
- !comicstrips@lemmy.world : for those who love comic stories.
arrays don't have indices. lists have indices. arrays have offsets.
The real reason she won't call back.
indeed. permanently off by 1.
This is a language dependent semantic difference.
I'll see myself out
hey no you can't logic your way out of this! i wanted an argument!
No you didn't

§6.7.9 of the C11 standard says they have elements with indices:
If an array of unknown size is initialized, its size is determined by the largest indexed element with an explicit initializer. The array type is completed at the end of its initializer list.
it also states in section 6.7.7 ("type names") that
If the pointer operand points to an element of an array object, and the array is large enough, the result points to an element offset from the original element such that the difference of the subscripts of the resulting and original array elements equals the integer expression.
note also that your example is the only occurrence of the word "index" in the entire document that isn't just referring to the actual index at the end.
I think you got that backwards sport. Index implies direct access but offset implies traversal.
Says who?
By definition, an index is
a number or symbol or expression (such as an exponent) associated with another to indicate a mathematical operation to be performed or to indicate use or position in an arrangement
Since the arrays offsets alao tell us about the items’s position in the array, is it not then an index?
People take these terms way too seriously. Hell, many languages have their “list” implemented as an array. What then do you call the index/offset?
She was a Lua girl
Her name was Lua as well
Lua Dipa?
🎶her name was lua🎶 🎶she was a coder🎶
I was too late to make the Lua joke, damn
Djikstra was so fucking wrong with this and people who parrot this are so annoying.
Sure, an offset starts at zero, but an index can very well start at one. Not all arrays represent a physical offset, please stop pretending your inferior zero only indexing is in any way superior.
Sometimes math is just simpler from one. When you’re translating math to code, one based indexes are usually better.
If your math uses numbers it's not real math.
Technically Real math only uses numbers.
No
I believe it was a joke where real maths refer to maths dealing with real numbers.

I shall not lower myself to use the newfangled Mathematical inventions of the Arabs and instead keep doing Mathematics like the Romans!
Screams in Lua
And R
Julia and Mathematica
And MATLAB
And myaxe.
And FORTRAN (I do nothing but SCREAM in FORTRAN anyway)
There is no second date because YYYY-MM-DD'T'HH:ii:ss'Z' is the only acceptable date.
Unless you're programming in VBA. But at that point you're already fucked anyway.

R wins again! I'm grateful every time i write the vector 1:n
It's useful though. It's more of a point when it doesn't work.
Anyway, there only one thing better than a sensible solution, and that's a standard.
Not in MATLAB/Julia! (But like yes under the hood computers start at 0)
MATLAB, Julia, R, Fortran, Lua.
Imo the real point of contention is column vs row major ordering in matrices. Actually so cursed trying to move between languages.
Let's meet in middle and start it at 0.5
You dodged a bullet, my friend.
she forgot and is already getting her guts rearranged by Chad Thundercock 10.5"

