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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Code worth reading

6 点作者 gringomorcego大约 13 年前
I just graduated with a degree in CS, my school only taught me Java. I'd like to broaden myself first by learning C deeply.<p>Can anyone suggest any good (C?) code to learn from? Specifically, I would like code that doesn't deal with GUI stuff, and possibly related to networking/os internals. Hopefully something less idiosyncratic than the Linux kernel, because I'm not smart enough to grok any of that really.

4 条评论

rachelbythebay大约 13 年前
You should see some good ones and some bad ones. I'll let you decide which is which.<p>How about: Samba, sendmail, Apache, procmail, popa3d, proftpd.<p>You should also consider checking out other programs which in the same "space" as those, so that means postfix, qmail, qpopper, wuftpd, and so on.<p>See if you can find the original netcat (by hobbit) and then compare it to the GNU version.<p>Those are just the ones which come to mind at the moment, probably because they scarred me in some way.
lsiebert大约 13 年前
Heh... I'm learning Java after picking up C. People will recommend K&#38;R 2nd ed... but K&#38;R doesn't cover quite a few things, including most modern c syntax...<p>Anyway try <a href="http://stackoverflow.com/questions/518984/good-examples-of-c-applications" rel="nofollow">http://stackoverflow.com/questions/518984/good-examples-of-c...</a>
daly大约 13 年前
Read literate programs. See "Implementing Elliptic Curve Cryptography", it is a program written as a book. Then learn to write your programs in literate form. Soon people will be reading your programs as examples.<p>Tim Daly
评论 #3917741 未加载
igorsyl大约 13 年前
I recommend reading the source code of Linux command line utilities and continuing with the kernel source code.