Re:Beej updated the classic Linux network programming guide
by icedchai on Wednesday July 20, 2022 @08:02PM
(#32174094)
I taught myself C from K&R 2, and a platform-specific (Amiga!) book, back when I was a teenager. In three decades, not much has really changed with the core language.
Re:Beej updated the classic Linux network programming guide
by jamal-kumar on Thursday July 21, 2022 @01:43AM
(#32176161)
While the core language has stayed the same the tooling and development environment has changed quite a lot. Proper modern compiler flags (-Wall etc) for example would be a huge help to new learners and for best practices, but k&r isn't mentioning these. I still think it's a good book but if you throw it at someone new to this they're going to be wondering why what they are writing isn't behaving as expected.
Re:Beej updated the classic Linux network programming guide
by emmelaich on Wednesday July 20, 2022 @06:53PM
(#32173461)
K&R2 is hard to beat for size and clarity of writing.
Could you elaborate on the "unbuffered shell output" comment?
Re:Beej updated the classic Linux network programming guide
by icedchai on Wednesday July 20, 2022 @08:02PM
(#32174098)
I'm guessing he's talking about the putchar/getchar example in the first or second chapter?
Re:Beej updated the classic Linux network programming guide
by jamal-kumar on Thursday July 21, 2022 @01:36AM
(#32176115)
Yeah that. It's extremely confusing and where a ton of people stop reading it.
If you're looking for something up to date I'd recommend this:
https://gustedt.gitlabpages.inria.fr/modern-c/