Ask HN: What source code is worth studying?
91–100 of 117 posts
Re: Ask HN: What source code is worth studying?
#92Re: Ask HN: What source code is worth studying?
#93SQLite's source listing is great. I learned a lot about good C practices and documentation reading it.
You will enjoy "C Interfaces and Implementations", along with the full, literate source-code for LCC. This is also good, Standard Function Library: http://legacy.imatix.com/html/sfl/
Re: Ask HN: What source code is worth studying?
#94Earlier quoted context omitted.
You will enjoy "C Interfaces and Implementations", along with the full, literate source-code for LCC. This is also good, Standard Function Library: http://legacy.imatix.com/html/sfl/
Where can one find the full literate source code for LCC? I haven't been able to find it anwyhere, and god knows I searched.
Re: Ask HN: What source code is worth studying?
#95I'm going to get downvoted for picking a non-open source option but... The NT kernel is the most beautiful piece of code I've seen. Dave Cutler and team wrote some very, very elegant code that anyone (even if you're not a kernel hacker) can understand. If I need 'code inspiration', I spend some time looking through their code. Now, the NT kernel itself doesn't have source out there but for folks who are students, you…
I spent several years writing drivers for NT and I don't know which part of the NT kernel you were looking at. The parts I saw were an utter mess lacking any sort of elegance whatsoever. If there were two ways to implement something, one simple and the other one contrived, you can bet your MCSD certificate NT will be using the latter. The overall impression was that it was hacked together in the worst sense of the wo…
Having worked on that team and having seen it for myself, it is truly elegant, concise, and very well written. I myself never touched it, and that is for the best. I probably wrote some of the crappy drivers for which you hold so much contempt.
Re: Ask HN: What source code is worth studying?
#96Any good event-driven JavaScript (jQuery/Prototype is also fine) projects out there?
Re: Ask HN: What source code is worth studying?
#97Re: Ask HN: What source code is worth studying?
#98Re: Ask HN: What source code is worth studying?
#99Earlier quoted context omitted.
Where can one find the full literate source code for LCC? I haven't been able to find it anwyhere, and god knows I searched.
I'm guessing here: http://www.cs.princeton.edu/software/lcc/
Re: Ask HN: What source code is worth studying?
#100Earlier quoted context omitted.
I'm guessing here: http://www.cs.princeton.edu/software/lcc/
There's no literate source linked to on that page. Just plain, normal, barely-commented C.
The book by David Hanson is the literate program.