What books/websites should i read to learn to write readable and maintainable C code? [duplicate]

StackOverflow https://stackoverflow.com/questions/9322791

  •  30-04-2021
  •  | 
  •  

Pregunta

Possible Duplicate:
The Definitive C Book Guide and List
Good open source code for C++

I started learning C++ over 2 years ago. Since then, i went back and learned C, among other programming languages, but C is my favorite. While looking at open-source projects recently, i quickly realized that my code is ugly, barely readable, and the opposite of extendable. I want this to change. Any references/links to any books, websites, or other resources that would better help me program in C more professionally would be greatly appreciated.

thanks

¿Fue útil?

Solución

Hmm you say you know C but it's not bad to mention the definite guide which is Dennis Ritchie's own book The C Programming Language. Another book I have heard good things about is Programming in C by Stephen G Kochan, even though I have not read it myself.

But in my opinion the best way to actually learn to write optimal code is to try it. Make many projects, and fail at doing so. Then be forced to search the net for what made you fail or what a bug might be, realize that you wasted 2 days over a bug that could have been avoided if you had followed some programming standards and then learn from that experience

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top