4 ms·
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 beyon
by GreyZephyr 9y 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.
- modernclearning 9y 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.
- sevensor 9y agoThere's the "Modern C" book from http://icube-icps.unistra.fr/index.php/Jens_Gustedt http://icube-icps.unistra.fr/index.php/Jens_Gustedt. Very opinionated, but it covers a lot of ground and if you disagree, it gives you a framework for figuring out your own preferences.
- isaachier 9y agoMy 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 9y ago21st Century C is a really good book for writing C11. There is a .pdf of it in Google.