« BackPackages, Not Programsbitfieldconsulting.comSubmitted by gus_leonel 8 months ago
  • sshine 8 months ago

    > packages, not programs

    Let me fix that for you: packages, and programs

    You put all the logic in a library.

    You reference the library in a very small program.

    The main() functions inside those small programs are usually one or two screens worth of lines.

    > Packages are a force multiplier

    With NixOS, programs are packages.

    • cmiller1 8 months ago

      This seems silly, a Hello World package benefits no one. Programmers make the conscious decision about whether they're developing a program or a library and not everything is suited to a library. Why would a game developer want to allow you to import their game as a package?

      • zelphirkalt 8 months ago

        > Why would a game developer want to allow you to import their game as a package?

        Well, why wouldn't they? Surely there are useful functions and procedures in there? If not, those might be outsourced into other separate ... packages.

      • tpoacher 8 months ago

        I get the point about packages, but creating a separate package to host the tests for another package sounds a bit silly to me.

        • undefined 8 months ago
          [deleted]