TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Packages, Not Programs

6 点作者 gus_leonel7 个月前

3 条评论

sshine7 个月前
&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.
cmiller17 个月前
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 未加载
tpoacher7 个月前
I get the point about packages, but creating a separate package to host the tests for another package sounds a bit silly to me.