Y Hacker News Books
Buy on Amazon3.8 out of 5, 59 ratings on Amazon

#180 of 2,654 all-time

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

lackbeard
C Interfaces and Implementations - Great examples of good API design and how to build clean modular code.

on HN, 2017

jll29
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.

on HN, 2022

rramadass
The data structures/algorithms given in Hanson's book are "industrial strength" with no missing parts (i.e. no exercise left to the reader).

on HN, 2022

sfpotter
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.

on HN, 2022

Where it comes up