Q:

C: What is a good source to teach standard/basic code conventions to someone newly learning the language?

I'm tutoring someone who can be described as a rank newcomer in C. Understandably, she does not know much about coding conventions generally practiced, and hence all her programs tend to use single letter vars, mismatched spacing/indentation and the like, making it very difficult to read/debug her endeavors.
My question is, is there a link/set of guidelines  and examples which she can use for adopting basic code conventions ? It should not be too arcane as to scare her off, yet inclusive enough to have the basics covered (so that no one woulc wince looking at the code).
Any suggestions ?

A:

I think Clean Code and Code Complete is not suitable to her current stage. I suggest you direct her to read The C Programming Language and write the function samples in her own way and let her compare her own implementation with the book. This will improve her programming ability a lot. After finishing this book, Clean Code and Code Complete maybe the best choice for her.

A:

I would recommend the book Clean Code. It describes several coding best practices, including things such as code structure, comments and variable naming.

