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.
I’m more of an RFC 3339 kinda guy
Heretic!
He prefers freedom rather than give money to useless companies.
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.
Also lua. Well, kinda: those weirdos use hashmaps for everything, iirc
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.
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.
Um actually they have strides and offsets.
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?
if you want my opinion (<- see now you can't tell me i'm wrong, it's an opinion) then the difference is that an array is by definition a memory address that's designated as the beginning of an array, and it's got an offset because the first element is at that specific address and further items are offset from that address. so you add the offset to the address to get the nth item. a list, meanwhile, can be basically any implementation under the hood, but it's commonly a linked list. the way you get the nth index there is you count up from the first position. since the implementation is opaque and may be spread out in memory you can't arithmetic your way to an index, you need to follow the pointers.
java's arraylist is a list backed by an array. java's vector is a list backed by a linked list.
Screams in Lua
And R
Julia and Mathematica
And MATLAB
And myaxe.
And FORTRAN (I do nothing but SCREAM in FORTRAN anyway)
She was a Lua girl
I was too late to make the Lua joke, damn
Her name was Lua as well
Lua Dipa?
🎶her name was lua🎶 🎶she was a coder🎶
Worse. She prefers Matlab over Numpy.
I think I'm going to be sick.

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.

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.
There won't be a date number 2
