Skip Navigation
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/)TR
triarius @programming.dev
Posts 0
Comments 20
Can someonr explain thr math of how someone is supposed to be able to be even close to net zero carbon footprint?
  • This is a really important insight. To add to it: back when the carbon from Pool 2 was in the atmosphere, dinosaurs were roaming the earth and it was a lot hotter than it is now.

    This is obviously a simplification, it but it drives home the point that once the carbon is out of Pool 2 it will cause global warming. The only way to stop that is to stop moving carbon from Pool 2 into Pool 1, ie stop fossil fuel mining.

    Of course we could try to move carbon from Pool 2 to Pool 1, but it took the Earth millions of years to do that, and many of the plant species that did it are now extinct. Perhaps once we're exinct, they might evolve again.

  • Google’s nightmare “Web Integrity API” wants a DRM gatekeeper for the web
  • It's easier in Firefox with containers. You can use multiple aws accounts on the same profile but different containers. I've tried to migrate to blink based browsers for various reasons, but this is what keeps me coming back to Firefox!

  • is it just me or GitHub is turning into some sort of LinkedIn
  • They scanned open source repos and made an LLM out of it. Now companies can profit from open source code without contributing back to the ecosystem. The only contribution they make is the money they pay to Microsoft for Copilot. So Microsoft is profiting from OSS code and stifling its community.

    Does this outweigh the free hosting of the code? IDK

  • Which order do you prefer for null testing ternary expressions?
  • I think the meat being more prominent in the second one is subjective. If I were writing a method to do something like this with ifs, I would handle the edge cases first and return early from them. The meat would be what's left after the edge cases. So this lines up with the first form.

  • What screams "poorly educated"?
  • I see so many educated people not realising this. The maths involved is something we learnt in ~ 5th grade, and I distinctly remember doing exercises on marginal rates in primary school in maths class. It's even simpler than compound interest - which is a staple of maths class later on.

    Yet so many people say there's a problem with the education system that it doesn't teach practical skills like these. It clearly does, kids just don't remember it. Maybe it's because they don't need to use this knowledge until almost a decade later.

  • git checkout vs git switch vs git restore
  • They're interchangeable for branches. Checkout works with arbitrary refs like commit hashes and tags as well. For these, switch needs the --detach flag. You can also use it to create a new branch from the current commit with ’git switch -c $branch_name’.