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.

Ask HN: Examples of good code?

4 pointsby sohamover 9 years ago
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 comments

geocarover 9 years ago
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 未加载
sebleblancover 9 years ago
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>
dalyover 9 years ago
Physically Based Rendering by Pharr and Humphreys (a literate program) is exceptionally readable ndncdall of the source code. It won an Academy Award.