9 points

Fireship is consistently one of the best tutors on YouTube

permalink
report
reply
1 point

I don’t understand what this has that any other package manager, yum, apt etc doesn’t.

dependencies stored in their own unique directory

Yeah so?

permalink
report
reply
10 points
*

it’s replicable and “atomic”, which for a well-designed modern package manager shouldn’t be that noticable of a difference, but when it’s applied to an operating system a la nixos, you can (at least in theory) copy your centralized exact configuration to another computer and get an OS that behaves exactly the same and has all the same packages. And backup the system state with only a few dozen kilobytes of config files instead of having to backup the entire hard drive (well, assuming the online infrastructure needed to build it in the first place continues to work as expected), and probably rollback a bad change much easier

permalink
report
parent
reply
-2 points

you can (at least in theory) copy your centralized exact configuration to another computer and get an OS that behaves exactly the same and has all the same packages.

As can you with grepping your history of apt commands? And back up that to a file of a few dozen kilobytes too.

Am I stupid?

permalink
report
parent
reply
9 points
*

assuming you have never used anything except apt commands to change the state of your system. (and are fine with doings superfluous changes eg. apt install foo && apt remove foo)

permalink
report
parent
reply
-1 points
*

Each package and its dependencies are stored in their own unique folder

If all those electron / web app haters could read, they’d be very upset right now.

permalink
report
reply
15 points

This is completely different from electron. Nix dependencies will be shared if they share the same hash. Electron just blindly copies everything over every time.

permalink
report
parent
reply
-5 points

Electron just copies over the browser engine required to run it, from a package management standpoint, assuming you’re using nom or yarn, it functions the same as nix.

permalink
report
parent
reply
5 points

?

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3K

    Monthly active users

  • 1.7K

    Posts

  • 28K

    Comments