TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Packages, Not Programs

6 pointsby gus_leonel6 months ago

3 comments

sshine6 months ago
&gt; <i>packages, not programs</i><p>Let me fix that for you: <i>packages, and programs</i><p>You put all the logic in a library.<p>You reference the library in a very small program.<p>The main() functions inside those small programs are usually one or two screens worth of lines.<p>&gt; <i>Packages are a force multiplier</i><p>With NixOS, programs are packages.
cmiller16 months ago
This seems silly, a Hello World package benefits no one. Programmers make the conscious decision about whether they&#x27;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?
评论 #42146717 未加载
tpoacher6 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.