this post was submitted on 22 Jan 2025
565 points (98.8% liked)

memes

11383 readers
2435 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/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] yetAnotherUser@discuss.tchncs.de 3 points 1 week ago (2 children)

The functions just store all variables in a globally accessible JSON file. Compartmentalization is for programmers that aren't capable of writing bug-free code.

[–] filcuk@lemmy.zip 3 points 1 week ago (1 children)

The only logical way to coordinate multiple drones like this is to store the json on a local nas and have them take turns updating their vectors within

[–] yetAnotherUser@discuss.tchncs.de 2 points 1 week ago* (last edited 1 week ago)

I was thinking the drones would use Bluetooth to send the modified json to each other which negates the need for a NAS.

Of course, two different drones may have modified the json nearly simultaneously so the json would need to be timestamped and the earlier timestamp overrules the later one in case of merge conflicts.

[–] Ephera@lemmy.ml 3 points 1 week ago

While writing the comment above, I was thinking that there are some ~~uncivilized~~ languages that allow you to call functions in the same class without an explicit self.dont() or this.dont(), so technically you can magically transfer data like that.

But having a variable goingToCrashIntoEachOther in a class would be a bit weird.