4 ms·
SQLite's source listing is great. I learned a lot about good C practices and documentation reading it.
by avinashv 17y ago
SQLite's source listing is great. I learned a lot about good C practices and documentation reading it.
- davidw 17y agoIf you like that style of C code, Tcl's is similar (and it's not a coincidence, as Dr. Hipp is part of the Tcl core team).
- avinashv 17y agoThanks for the tip, I didn't know that. I haven't ever used Tcl besides some tinkering a few years ago, whereas SQLite is used incredibly often, but I'll read any C that's well written.
- mahmud 17y agoYou 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/ http://legacy.imatix.com/html/sfl/
- ori_b 17y agoWhere can one find the full literate source code for LCC? I haven't been able to find it anwyhere, and god knows I searched.
- mattyb 17y agoI'm guessing here: http://www.cs.princeton.edu/software/lcc/ http://www.cs.princeton.edu/software/lcc/
- ori_b 17y agoThere's no literate source linked to on that page. Just plain, normal, barely-commented C.
- plinkplonk 17y ago"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.
- ori_b 17y agoOk, so the literate source, in a form that I can actually play with, isn't acutally available. It doesn't even seem to be maintained in literate form in SVN. That's what I was trying to determine.
- jeremyw 17y agoEspecially its deep test architecture.
- clutchski 17y agoan intro: http://www.sqlite.org/testing.html http://www.sqlite.org/testing.html