Packages, Not Programs

(bitfieldconsulting.com)

4 points | by gus_leonel 12 hours ago ago

5 comments

  • cmiller1 8 hours 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 hours 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.

  • sshine 8 hours 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.

  • tpoacher 8 hours 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.

  • 8 hours ago
    [deleted]