Skip Navigation
How to ensure my web app has backward compatibility with importing JSON based user data?
  • Two rules of thumb that I've found useful:

    1. Introduce a version field top-level. If necessary, you can introduce a version 2, but keep the parser for version 1 around.
    2. You want to err on the side of using objects in place of single values, because you can add fields to an object without breaking backwards compatibility.
  • What are your favorite statically typed, compiled, memory safe programming languages?
  • Hmm, that sounds quite interesting. But because I've had to rebut that for everyone else that responded: Is it opt-in?

    I guess, I would be fine with opt-in for the actor pattern, since you either do actors in your whole codebase or you don't, but otherwise, opt-in often defeats the point of safety measures...

  • Andreas Scheuer „reicht es“: Ex-Minister tritt auch als Passauer Stadtrat zurück
  • Ich versteh's aber echt nicht. Dass der noch irgendwo in der Regionalpolitik herumspukt, kann ich nachvollziehen, aber ausgerechnet Rechnungsprüfer nachdem er so viel Geld veruntreut hat, macht einfach gar keinen Sinn.

  • ich😢iel
  • Man sieht manchmal im Internet so Live-Laugh-Love-Facebook-Niveau Posts, wo dann eben der Junge™ irgendwas total heroisches tut, aber seine scheiß Hackfresse nicht aufbekommt und deswegen das Mädchen™ im Glauben lässt, er würde etwas Schlimmes tun, was sich dann herausstellt, dass es gar nicht der Fall ist, und ja keine Ahnung, Alter, das soll dann total emotional und belehrend und sonstwas sein.

    Dieser Post hier nimmt das eben auf die Schippe, weil anstatt dass man denkt, der Junge™ hätte etwas total heroisches getan, denkt man sich bestenfalls, dass er etwas total dummes getan hat.

  • EIA calls on European Commission to take action on overlooked methane emissions in new mandate - EIA
  • Damn, 1030 words and not one of them is "cow" or "burp".

    The only time they get close to mentioning it, is:

    The current regulatory framework lacks urgency and effectiveness, particularly in the agriculture sector, the largest source of methane emissions.

    Which makes it sound like a wheat field burps out methane.

  • Germans decry influence of English as ‘idiot’s apostrophe’ gets official approval
  • While you're right that there is a rabbit hole to go down, we just didn't have a solution for this so far.
    "Matthias' car" translates as "Matthias Auto", which could also be a new Disney character.

    The problem is much less frequent in German, though, because our plurals don't generally end with a 's'.

  • Git grumpy: Torvalds complains of passive voice in merge commit messages
  • So, uh, I have a colleague who studied linguistics, and when I explained to her that we write commit messages like that, her reaction was basically: What the fuck, why?

    My explanation wasn't as sharp, as I didn't call it "imperative" but rather just "infinitive", which got me the immediate backlash that it's not a sentence then, so why do you put a dot behind it?

    She did accept my descriptivist excuses explanation that we write it that way, because it's terser, but I know it didn't sit well with her.
    Will need to see what her reaction is to commanding the repo. 😅

  • Halo is officially moving to UE5
  • Before the Unity suicide, I doubt it had 10% either. And you know, making games takes time, so in terms of released games, we might still not see an uptick.

    But I do think newly developed, particularly indie titles will go beyond those 10%, and maybe even quite easily so.
    There's not many statistics out there, so here's some horribly biased ones: https://gamefromscratch.com/godot-popularity-at-gmtk-jam-2024-explodes/

    This is from a gamejam held by a particular YouTube channel. That YouTube channel has an ongoing series about making a Unity game, nothing about Godot yet.
    But it is a gamejam, where people sit down for just a weekend to make a game, so people will be much more willing to try a new engine out. Although they'll typically have some prior experience, since you don't want to spend the whole gamejam learning an engine.

    But yeah, those caveats notwithstanding, that still is a significant growth for Godot.

  • If you love dogs and cats you should love the rest.
  • No, because eating meat kills more plants than eating plants does. The farm animals get fed from plants, and not all of that energy ends up as calories in meat, meaning you need to kill more plants to get the same amount of calories.

  • Die größten Mythen der Energiewende
  • Ja, ich denke, die Sendung kann eher den Leuten helfen, die nicht unbedingt umgestimmt werden müssen, sondern einfach bei der ganzen Desinformation nicht wissen, was sie glauben sollen.

  • Former Google CEO Eric Schmidt says we should go all in on building AI data centers because 'we are never going to meet our climate goals anyway'
  • "Yes, the needs in this area will be a problem, but I'd rather bet on AI solving the problem than constraining it and having the problem," Schmidt said.

    In 2022, Schmidt founded White Stork, a defense company that develops AI-powered drones.

    I guess, the guy does have a solution after all. Just let AI drones kill 90% of humanity, that'll slash emissions quite drastically.

  • Fluiddynamik: Phasenübergang bei spielenden Kleinkindern entdeckt
  • Das Paper darf man als Normalsterblicher leider nicht einsehen, aber dieses Diagramm verwirrt mich:

    Ich hätte erwartet, dass rechts "gaseous" steht. Stattdessen steht da einfach nur "fluid", als wären "liquid" und "vapor" nicht auch fluide. 🫠


    Wollte aber tatsächlich wissen, wie sehr die Studie die Varianz der Räume einbezogen hat, und gemäß dieser Synopsis waren es wohl tatsächlich nur 4 Räumlichkeiten, wie die Legende des obigen Diagramms auch suggeriert: LC1, LC2, HC und PG.

    Bedeutet auch, die kleinen Räumlichkeiten waren jeweils in einem durchgefegten Gebäude. Also vermutlich gruppieren sich die Kids nicht nur, weil man näher beieinander ist und sich vielleicht instinktive Verhaltensweise wie in einer Höhle zeigen, sondern auch weil es darin rotzlangweilig ist.

    Wenn darin spannende Käfer herumkrabbeln würden, mehr als es Kinder gibt, würden sie sich wahrscheinlich auch mehr wie ein Gas verteilen.
    Ohne spannende Käfer sind die spannendsten Lebewesen in dem Raum dann eben andere Kinder.
    Um bei der Chemie-Analogie zu bleiben, die Käfer sind also Katalysatoren. 🙃

  • ich🎓iel

    Vom Wikipedia-Artikel zur sprichwörtlichen Eintagsfliege: https://de.wikipedia.org/wiki/Eintagsfliege

    0
    Is the heat produced by fossil and nuclear fuel negligible?

    We often talk about the climate impact based on greenhouse gases, but extracting fuel from the ground and using it in exothermal processes of course also releases energy as heat.

    This is mostly¹ in contrast with renewables, which make use of energy that's not long-term contained to begin with, so would end up as heat in our atmosphere anyways.

    So, my question is: Does the amount of energy released by non-renewables have any notable impact on our global temperature? Or would it easily radiate into space, if we solved the greenhouse gas problem?

    ---

    ¹) In the case of solar, putting up black surfaces does mean that less sunlight gets reflected, so more heat ultimately gets trapped in our atmosphere. There's probably other such cases, too.

    13
    Linux 101 stuff. Questions are encouraged, noobs are welcome! @lemmy.world Ephera @lemmy.ml
    Full documentation for APT?

    Hi, I just read online that you can apparently run apt --fix-broken install.

    I wanted to know, what that really does, but both apt --help and man apt only show a high-level summary of the subcommands and flags. The --fix-broken flag is never mentioned, and presumably many others neither.

    Is there some way to access documentation for all subcommands and flags?

    3
    When you support package managers from A to Z...

    Real screenshot from (crappy) personal project...

    5
    Tweaking the Font?

    Hi, the default Roboto font is boring me out of my mind and I'd like to change it.

    In the past, I've done so by just replacing the font file in the OS, which worked well, but meant that it would reset after every OS update. I'm considering scripting that with ADB to make it less of a pain, but figured I should ask, if there's a better way.

    I'm on LineageOS which has a font styling system, but it only applies to the OS, not the user-installed apps...

    5
    Unixporn @lemmy.ml Ephera @lemmy.ml
    Plasma 5.25 Can Sync Accent Color with Wallpaper

    From the release announcement: https://kde.org/announcements/plasma/5/5.25.0/

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)EP
    Ephera @lemmy.ml
    Posts 23
    Comments 2.4K