Ask HN: what sources should I read ?
Hi,
I'm trying to become a better C programmer so I began to read the 4.4bsd source code. Are there other interesting sources to read ?
I'm trying to become a better C programmer so I began to read the 4.4bsd source code. Are there other interesting sources to read ?
2 comments
[ 3.8 ms ] story [ 10.3 ms ] threadIf you're just getting started with unix and C I'd say start with /usr/src/bin and /usr/src/usr.bin since there are plenty of easy things there like cat, date, etc.
Next I'd head over to /usr/src/lib/libc, do a grep for "Chris Torek". Everything he writes is good. Learning low level details about how libc works on whatever platform you're on is always a good thing if you're doing any real C programming.
After that it's a matter of taste. Find something that interests you and read that (e.g. if you like kernel stuff head over to /usr/src/sys).
Fact: If you make a habit of reading good code, you will write better code yourself."
Check out this next time you are in the bookstore:
http://www.spinellis.gr/codereading/