4 ms·
If I ever get around to going back to learning C my two starting resources would be: Zed Shaw's Learn C the Hard Way because one weekend a couple of years ago
by brudgers 10y ago
If I ever get around to going back to learning C my two starting resources would be:
Zed Shaw's Learn C the Hard Way because one weekend a couple of years ago and back when it was free online, I started working through it and it's very good for a beginner...which is Shaw's goal. The reason it's good for a beginner is that it does not get bogged down in trying to reach a broad audience (K&R was written for systems programmers using assembly language) and because it introduces key aspects of the C ecosystem/environment/workflow such as Valgrind and Make so that when you are done with the book, you're not going to be left wondering how to actually write a program.
The other resource is Head First: C which I picked up the time I decided to learn C before the last time I decided to learn C. I like the Head First books and have used some of them successfully...and apparently not used others unsuccessfully. Like Shaw's work it's also well structured from a pedagogical perspective (and this is rather unlike K&R).
Some other interesting C books I have on my shelf: The Standard C Library because it was about $3 used and I threw it into a Thriftbooks order to make the $10 minimum for free shipping on a whim. The prose and the code are both interesting. And the Amiga ROM Kernal manuals which date back to the first time I tried to learn C ... and at that time the real problem was that a C compiler and the hardware to run it was in the kilodollars and there was no internet and so that was kind of an impediment.
As for learning C for performance these days, probably not unless you're doing embedded systems and even then if it's not going to be manufactured in mass quantities you can probably throw hardware at it...a RPi Zero has is mid six figures of hardware from the time when K&R first appeared. But learning C for the purpose of learning to think about programming a different way is probably worth it.
Anyway, since I haven't learned C it might not be worth giving much weight to my advice.
Good luck.
https://learncodethehardway.org/c/ https://learncodethehardway.org/c/