C Interfaces and Implementations
David Hanson
32 people recommended it in 8 threads, 2010–2022.
8 commenters pushed back on it — worth reading the threads.
What people on Hacker News said
C Interfaces and Implementations - Great examples of good API design and how to build clean modular code.
The second book is a true gem that teaches even seasoned programmers how to implement correct, clean and portable components as libraries in ISO C, with plenty of source code to show how the true masters of the language craft the finest code you can in C.
The data structures/algorithms given in Hanson's book are "industrial strength" with no missing parts (i.e. no exercise left to the reader).
If you are new to C and don't know how to manage complexity by building up useful interfaces for your data structures, reading Hanson's book is a reasonable way to get some ideas.
Where it comes up
- Ask HN: Best book to learn C in 2022? 2022 · 22 recommendations
- Ask HN: I use and love Python. What's the best book to learn C ? 2010 · 3 recommendations
- What is the single most influential book every programmer should read? 2011 · 2 recommendations
- Ask HN: Suggestions for books about API design? 2020 · 1 recommendation
- Ask HN: What books have made the biggest impact on your mental models? 2017 · 1 recommendation
- The most mentioned books on Stack Overflow 2017 · 1 recommendation
- What are must read books for entry level C programmer? 2017 · 1 recommendation
- Ask HN: Books you read in 2016? 2016 · 1 recommendation
