top | item 16536107

(no title)

GreyZephyr | 8 years ago

Piggybacking of this post, if anyone has any similar resources for best practices in modern C I'd be interested. There don't seem to be any moocs that go beyond introductory material and K&R obviously doesn't cover modern tools and methods.

discuss

order

modernclearning|8 years ago

“C Interfaces and Implementations” by David R. Hanson is what I used when I had a similar concern a few years ago. It’s from 1997, so no, it doesn’t cover the newest C standards, which I understand is your main concern. Though C11 didn’t add too much semantically, for what it’s worth. That said, the book provides great design patterns for writing C in an object-oriented sort of manner, more idiomatic to OOP.

Peter Hintjens was writing “Scalable C” a couple years ago, but recently died, and never got very far unfortunately.

isaachier|8 years ago

My biggest question would be what modern means to you? Does it mean the style of the newest popular C project? The newest standard (C11)? And what devices are you using C for? I'd assume a standard POSIX environment, but you can't be sure with C.

jxub|8 years ago

21st Century C is a really good book for writing C11. There is a .pdf of it in Google.