this post was submitted on 12 May 2026
713 points (98.9% liked)

memes

21206 readers
2265 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo 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

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] abbadon420@sh.itjust.works 76 points 16 hours ago (1 children)

I bet the date wasn't in ISO 8601

[–] pennomi@lemmy.world 16 points 15 hours ago (1 children)

I’m more of an RFC 3339 kinda guy

[–] abbadon420@sh.itjust.works 15 points 15 hours ago (1 children)
[–] one_old_coder@piefed.social 0 points 2 hours ago

He prefers freedom rather than give money to useless companies.

[–] sangeteria@lemmy.ml 9 points 11 hours ago (2 children)

Not in MATLAB/Julia! (But like yes under the hood computers start at 0)

[–] Meron35@lemmy.world 6 points 10 hours ago

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

[–] carmo55@lemmy.zip 9 points 11 hours ago (1 children)

R wins again! I'm grateful every time i write the vector 1:n

[–] echodot@feddit.uk 4 points 11 hours ago

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.

[–] lime@feddit.nu 55 points 16 hours ago (20 children)

arrays don't have indices. lists have indices. arrays have offsets.

[–] The_Picard_Maneuver@lemmy.world 85 points 16 hours ago (1 children)

The real reason she won't call back.

[–] qprimed@lemmy.ml 20 points 16 hours ago

indeed. permanently off by 1.

[–] NocturnalMorning@lemmy.world 11 points 12 hours ago* (last edited 12 hours ago) (1 children)

This is a language dependent semantic difference.

I'll see myself out

[–] lime@feddit.nu 3 points 12 hours ago (2 children)

hey no you can't logic your way out of this! i wanted an argument!

[–] edgemaster72@lemmy.world 7 points 11 hours ago

No you didn't

[–] NocturnalMorning@lemmy.world 2 points 11 hours ago (1 children)
load more comments (1 replies)
[–] turdas@suppo.fi 14 points 15 hours ago (1 children)

§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.

load more comments (1 replies)
[–] socsa@piefed.social 2 points 10 hours ago

Um actually they have strides and offsets.

[–] SorryQuick@lemmy.ca 2 points 11 hours ago (1 children)

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?

[–] lime@feddit.nu 2 points 11 hours ago* (last edited 11 hours ago) (2 children)

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.

load more comments (2 replies)
load more comments (15 replies)
[–] possiblylinux127@lemmy.zip 16 points 13 hours ago (1 children)
[–] driving_crooner@lemmy.eco.br 5 points 13 hours ago (1 children)
[–] mumblerfish@lemmy.world 4 points 13 hours ago (1 children)
[–] Jestzer@lemmy.world 6 points 12 hours ago (2 children)
[–] WhiskyTangoFoxtrot@lemmy.world 7 points 12 hours ago
[–] thebestaquaman@lemmy.world 4 points 11 hours ago* (last edited 11 hours ago)

And FORTRAN (I do nothing but SCREAM in FORTRAN anyway)

[–] treadful@lemmy.zip 33 points 16 hours ago (3 children)
[–] darkevilmac@lemmy.zip 6 points 13 hours ago

I was too late to make the Lua joke, damn

[–] Vitaly@feddit.uk 9 points 16 hours ago* (last edited 16 hours ago) (2 children)
[–] thenextguy@lemmy.world 13 points 15 hours ago
[–] qprimed@lemmy.ml 7 points 15 hours ago* (last edited 15 hours ago)

🎶her name was lua🎶 🎶she was a coder🎶

[–] socsa@piefed.social 1 points 10 hours ago

Worse. She prefers Matlab over Numpy.

I think I'm going to be sick.

[–] GreenKnight23@lemmy.world 10 points 14 hours ago
[–] panda_abyss@lemmy.ca 15 points 16 hours ago (4 children)

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.

[–] turdas@suppo.fi 12 points 15 hours ago (4 children)

If your math uses numbers it's not real math.

load more comments (4 replies)
load more comments (2 replies)
[–] dohpaz42@lemmy.world 13 points 15 hours ago* (last edited 15 hours ago)

There is no second date because YYYY-MM-DD'T'HH:ii:ss'Z' is the only acceptable date.

[–] unknownuserunknownlocation@kbin.earth 13 points 15 hours ago (5 children)

Unless you're programming in VBA. But at that point you're already fucked anyway.

[–] qprimed@lemmy.ml 9 points 12 hours ago

fucked anyway

[–] SpaceNoodle@lemmy.world 9 points 14 hours ago

So you're saying she's BASIC?

load more comments (3 replies)
[–] ChaoticNeutralCzech@feddit.org 2 points 11 hours ago

There won't be a date number 2

load more comments
view more: next ›