503
top 50 comments
sorted by: hot top controversial new old
[-] sangeteria@lemmy.ml 4 points 42 minutes ago

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

[-] HyperfocusSurfer@lemmy.dbzer0.com 1 points 8 minutes ago

Also lua. Well, kinda: those weirdos use hashmaps for everything, iirc

[-] ChaoticNeutralCzech@feddit.org 2 points 36 minutes ago

There won't be a date number 2

[-] carmo55@lemmy.zip 4 points 1 hour ago

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

[-] echodot@feddit.uk 3 points 44 minutes 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.

[-] auzy1@lemmy.world 3 points 1 hour ago

Not in my household. In some cultures the concept of 0 doesn't even exist

[-] normalentrance@lemmy.zip 1 points 42 minutes ago* (last edited 42 minutes ago)

You're telling me If I have one item and give it away, in some cultures I'd have something other than no items? I'm not being sarcastic, that kind of blows my mind if true.

[-] rebelsimile@sh.itjust.works 1 points 6 minutes ago

maybe you now have 1 lack of items?

[-] possiblylinux127@lemmy.zip 14 points 3 hours ago
[-] driving_crooner@lemmy.eco.br 4 points 2 hours ago
[-] mumblerfish@lemmy.world 3 points 2 hours ago
[-] Jestzer@lemmy.world 4 points 2 hours ago
[-] thebestaquaman@lemmy.world 3 points 1 hour ago* (last edited 1 hour ago)

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

[-] altkey@lemmy.dbzer0.com 2 points 2 hours ago

The picture in meme made me think like it's a europenized version of Kazuma Kiryu, who is conviniently a long-time friend with Makoto Date.

[-] WhiskyTangoFoxtrot@lemmy.world 3 points 1 hour ago

Like if the people who handled the Prince of Persia movie did a Yakuza movie?

[-] altkey@lemmy.dbzer0.com 1 points 13 minutes ago

I want to see it no matter how bad it is.

Btw, the 2007 LAD movie is lit if you haven't seen it. It has a scene of drinking staminan in the middle of the fight. One of my favorite vg adaptations.

[-] abbadon420@sh.itjust.works 61 points 5 hours ago

I bet the date wasn't in ISO 8601

[-] pennomi@lemmy.world 12 points 5 hours ago

I’m more of an RFC 3339 kinda guy

[-] abbadon420@sh.itjust.works 14 points 5 hours ago
[-] lime@feddit.nu 45 points 5 hours ago

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

[-] SorryQuick@lemmy.ca 2 points 1 hour ago

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 1 hour ago* (last edited 1 hour ago)

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.

[-] SorryQuick@lemmy.ca 1 points 28 minutes ago

That doesn’t really address what you call it. Names only really just exist to get your point across. Inexperienced devs may not know what an offset means (or why we use that), so index does the job. An experience dev knows how it works anyway, so whether you say index or offset won’t matter. By virtue of the common denominator, I simply use index everywhere.

[-] Zink@programming.dev 1 points 1 hour ago

You can't take my 'i', we have been together.

[-] lime@feddit.nu 1 points 1 hour ago

you can't spell offset without off. as in fuck.

(affectionate)

[-] The_Picard_Maneuver@lemmy.world 64 points 5 hours ago

The real reason she won't call back.

[-] qprimed@lemmy.ml 17 points 5 hours ago

indeed. permanently off by 1.

[-] turdas@suppo.fi 12 points 5 hours ago

§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)
load more comments (12 replies)
[-] HalfSalesman@lemmy.world 3 points 2 hours ago

If you can't let your obsessions and natural thoughts all hang out with a person... were they partner mater- wait, well, you can't do this with allistic people at all as an autistic person and allistics make up like 99% of the population.

Always have to filter your thoughts at first. Let that stuff out in drips. Then once comfortable you let it all hang out.

[-] boonhet@sopuli.xyz 2 points 2 hours ago

Ah then partner material needs to be autistic too.

Not autistic, but I have ADHD and also feel the need to filter my thoughts with a lot of people, which is a bit difficult given the "blurt my thoughts out" disorder. I've begun to understood they're not partner material for me, through no fault of their own.

[-] treadful@lemmy.zip 27 points 5 hours ago
[-] darkevilmac@lemmy.zip 6 points 2 hours ago

I was too late to make the Lua joke, damn

load more comments (3 replies)
[-] dohpaz42@lemmy.world 12 points 5 hours ago* (last edited 5 hours ago)

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

[-] panda_abyss@lemmy.ca 14 points 5 hours ago

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 10 points 4 hours ago

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

load more comments (2 replies)
load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 12 May 2026
503 points (100.0% liked)

memes

21198 readers
2179 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