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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Examples of good code?

4 点作者 soham超过 9 年前
I&#x27;m looking for examples of well-written code (open-source projects), for study material.<p>If you have come across code, from which you learnt a lot by reading it, please share.<p>Thanks!

3 条评论

geocar超过 9 年前
Most recently for me, I saw Arthur&#x27;s code which might not be what you&#x27;re looking for. The origins of J[1], is publicly available C code, and even if it doesn&#x27;t move you, consider spending some time on it anyway.<p>When I was younger, I learned a lot from reading djb&#x27;s code[2] changed the way I think about application design and [3] changed my mind about system administration. Actually everything djb wrote is worth learning from.<p>Before that I recall specifically sicp[4] giving me a lot to think about.<p>There are also bigger things (like plan9[5] and emacs[6]) that I&#x27;ve found interesting.<p>[1]: <a href="http:&#x2F;&#x2F;nsl.com&#x2F;papers&#x2F;origins.htm" rel="nofollow">http:&#x2F;&#x2F;nsl.com&#x2F;papers&#x2F;origins.htm</a><p>[2]: <a href="http:&#x2F;&#x2F;cr.yp.to&#x2F;djbdns.html" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;djbdns.html</a><p>[3]: <a href="http:&#x2F;&#x2F;cr.yp.to&#x2F;daemontools.html" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;daemontools.html</a><p>[4]: <a href="https:&#x2F;&#x2F;mitpress.mit.edu&#x2F;sicp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mitpress.mit.edu&#x2F;sicp&#x2F;</a><p>[5]: <a href="http:&#x2F;&#x2F;9p.io&#x2F;plan9&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;9p.io&#x2F;plan9&#x2F;index.html</a><p>[6]: <a href="http:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;emacs&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;emacs&#x2F;</a>
评论 #10571667 未加载
sebleblanc超过 9 年前
SQLAlchemy[1] is a large project with a very solid codebase; it is very well documented and the API is exemplary.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;zzzeek&#x2F;sqlalchemy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zzzeek&#x2F;sqlalchemy&#x2F;</a>
daly超过 9 年前
Physically Based Rendering by Pharr and Humphreys (a literate program) is exceptionally readable ndncdall of the source code. It won an Academy Award.