Programmers only!
Which of these three software designs is best?
----
class Noun {
/* ... */
}
function verb(noun) {
/* ... */
}
let noun = new Noun()
let result = verb(noun)
----
class Noun {
/* ... */
verb(noun) {
/* ... */
}
}
let noun = new Noun()
let result = noun.verb()
----
class Noun {
/* ... */
}
class Verber {
/* ... */
verb(noun) {
/* ... */
}
}
let noun = new Noun()
let verber = new Verber()
let result = verber.verb(noun)
If you can, please donate to the orgs currently urgently evacuating people in the affected parts of the 🇺🇦 Kherson region:
https://helpingtoleave.org/en#donate
https://vostok-sos.org/en/i-wanna-help/rekvizyty-dlia-hroshovoho-perekazu/
Don't get me wrong, she posts good stuff there... It's just that the instance is ran by a russkie chauvinist from "ne vsyo tak odnoznachno" camp.
Hmm, TIL that my personal hero @bookwar has an account on mastodon.ml.
I don't know how to consolidate this either.
QT: https://discuss.systems/@yrashk/110528532773810662
Verify if theory is correct Yurii shall!
P.S.
Upstream pls.
BTW, lemmy.ml is failing with the load. The best thing you can do is also overload their moderation team by signing up and then programmatically spaming them with AI generated shit (of course, max size images are obligatory)!
I'll keep you posted if I get my account registered, which would mean that it's feasible.
Let's tank the tankies! 💪
Submodules are probably the ugliest piece of suck that Git has to offer. The entire idea that your repo must depend on some other repos -- which may or may not be available -- is just a recipe for failure. This is especially true when submodules are hosted by a different user or even on an entirely different git hosting, i.e. out of the top repo owner's control.
The obvious solution would be to include the submodule commits into the top repository as a kind of sub-repo, with its own history but still contained within the same .git directory. But git people are spethial beyond any measure and excel only in their arrogance.
By the way, between this and Leunuchs, I really think that Loinooos Torovaltos isn't very good at programming. Both of his famous projects are just a bunch of ugly hacks that have only become successful through sheer power of autism. It's just yet another case of writing a lot of code quickly and making it just barely work that helps him to stay ahead of the competition.
This post is inspired by me trying to reverse engineer a bunch of code from a repo that misses submodules, because those have been lost to time.
Shit the previous post makes me sound like I'm a #Ferrari fan. No, I'm absolutely not. And I question the moral compass of people who are past 1997!
I was amused to see "the underdog" win vs my beloved #Toyota, which, I'd rather not see dominating every tournament that starts with "W" and ends with "C".
I'm truly happy for #AntonioGiovinazzi.
#Ferarri really derivered some memes with their strategy, but I can't hate the race itself. They were fighting each other, letting car number 5 #Toyota run away with the race on softs.
22h hours in +00:00:16:xxx for Toyota was way closer than how I understand #WEC #24Hours races work.
help fediverse! installed a bunch of random flatpak apps in micro os desktop, uninstalled all of them and then verified = nothing unused
started with 2+ gb free space and now down to 603. where did all the free space go? @sysrich @FlatpakApps
#linux #desktop #foss #flatpak #opensource #os #microos #opensuse #fediverse #alttext
Ugh #LeMans24
so..
I had a model in red plastic,
... I covered it in white primer
... and then in a pink coat
... and then I realised not everything should be pink
... so I start covering in white paint parts of the model
... then I realised I have too many layers of paint
... I started removing paint with isopropyl alcohol
... luckily the primer stayed
... I ended up with this "chipping paint" effect 🤣I will be covering this anyway but it's an interesting effect of removing a layer to see undercoat paint
That https://doma.dev guy
#lean #elixir #typescript #react #nix
In my non-existent free time I design and run #TTRPG
If you use tools made by genocide-apologists, you are a genocide-apologist.
#lemmy users aren't welcome here.