• 37 Posts
  • 266 Comments
Joined 10 months ago
cake
Cake day: December 28th, 2023

help-circle
  • Maybe I’m confused, but from what I understand, “declarative” means you tell the computer what you want the final thing to look like, and “imperative” means you tell the computer what steps to take. So Dockerfile would be imperative because it’s a set of commands that are executed in-order to create the image. Meanwhile docker-compose.yml is declarative because you say which containers are used with what options and how they’re interconnected. IDK tho, as far as I understand the definitions aren’t that rigid




  • This (and systemd bugs) is the main reason I moved away from nixos on my homeserver. Nowadays if I want declarative configuration, I just cram everything into docker containers and write a huge docker-compose.yml for everything that I want to run. Would still recommend nixos for things that don’t require a lot of tweaking. Like if I had to set up a simple website for a small business or something. I love how you can set up SSL certificates for nginx with autorenewal just by switching it on in configuration.nix.







  • renzev@lemmy.worldtoScience Memes@mander.xyz50% survival rate
    link
    fedilink
    English
    arrow-up
    63
    ·
    edit-2
    3 days ago

    So…

    • normal people are scared because they fall for the gambler’s fallacy,
    • mathematician is feeling fine because a 50% chance is a 50% chance,
    • and the scientist is feeling extra fine because the experimental data shows that the surgery is actually safer than 50%

    Did I get it right?







  • I’m no politologist or military strategist, but I’m pretty sure a lot of wars (not all of them) are started so that a nation’s government can get better control over their own population. If the state can declare an emergency situation, they can use it to justify cracking down on political dissidents, invasive surveillance, restrincting freedom of speech, etc in the eyes of the public. It can also be used to ramp up nationalism, which works in the ruling class’ favour. Pretty sure this is at least part of the reason behind putin and nettanyahu stirring shit up right now.