Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

There are a lot of books which teach writing good code in Java, C++ etc. There are hardly any (AFAIK) for C. Are you aware of any? Also it'd be great if there were a few recent books in addition to the classics.

share|improve this question
1  
The code in K&R is really, really good to learn from. – BlackJack Sep 26 '11 at 2:24
For those of us that are acronym-challenged: en.wikipedia.org/wiki/The_C_Programming_Language – Robert Harvey Sep 26 '11 at 2:33
Hi Plumenator, book recommendation questions are off-topic here unless they are asking for a canonical book about a specific programming problem. How to write well-designed programs in C isn't the scope of what we allow. Rather than asking for a book on how to learn it, consider just asking about specific questions you have directly here and on Stack Overflow. – user8 Sep 26 '11 at 2:50
@BlackJack I disagree, the code in K&R is very poorly written and continues plenty of questionable coding practices. The book is simply too old, good programming practice was invented later, when the book was already written. – Lundin Sep 29 '11 at 11:23

closed as not constructive by Mark Trapp Sep 26 '11 at 2:48

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

2 Answers

There are a few out there though I can't really vouch for any myself.

Test Driven Development for Embedded C

Design Patterns for Embedded Systems in C

The last one I found is a fair bit older than the others but appears to be more general as well.

Practical C Programming, 3rd Edition

share|improve this answer

The Practice of Programming by Kernighan and Pike is an excellent book for learning the elements of style in C, C++ and Java. They cover algorithms and optimization as well. It does not cover structuring large programs, though.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.