News for hackers. Stuff that matters.
Re:Master C++ Programming with Open-Source Books by muyuu on Thursday February 16, 2017 @10:16AM (#13660472)
>thinking it's the K&R of C++.

You nailed it with that analogy though.

K&R is a "first book" and important historically, but right now it's an atrocious book if you want to learn current C and this has been the case for a long, long time.

Sometimes these first books don't withstand the test of time.

Re:Master C++ Programming with Open-Source Books by ska on Thursday February 16, 2017 @11:05AM (#13660971)
That's not entirely fair - it's not just about being first.

K&R may be archaic now, even obsolete. However, for decades it has was held up as a an example of what a good technical/language book could be. You don't have to agree with the assessment to agree with the fact - that this was touted as a very good technical book for various reasons.

There never was a "K&R" of C++. That's not unusual, many languages are in the same boat. If you want to go back to the "firsts" it would be a combination of The C++ Primer and Strousoup, putting them together gave you something that was both more and less that K&R was for C.

Re:Master C++ Programming with Open-Source Books by muyuu on Thursday February 16, 2017 @11:19AM (#13661106)
I first studied the K&R in the early 90s, and it was already terrible by then. Especially if you wanted to teach anything other than quirky systems programming.

From the software engineering point of view, almost every single code example is terrible. Abundant implicit casts depending on the OS, loops that leak buffered reading between iterations, etc etc.

Just no. Never, ever recommend K&R to anybody as a general programming book neither for C or in general. Only the intro descriptions of language characteristics and important functions of the standard library are any use, and then again even these are extremely obsolete now.

Re:Master C++ Programming with Open-Source Books by ska on Thursday February 16, 2017 @12:34PM (#13661828)
Sure, it was a snapshot in time. By the nineties it was already old. I'm not defending it at all as book to learn C from.

There is, however (like or not), a reason we even now say "X is the K&R of Y". As such it is a bit silly to claim that the only reason K&R succeeded as well as it did was by being early....

Re:Master C++ Programming with Open-Source Books by 77pt77 on Thursday February 16, 2017 @11:15AM (#13661078)
True, but it maintains a cult following, for lack of better wording.
Re:Master C++ Programming with Open-Source Books by mlmlmasd on Thursday February 16, 2017 @11:05AM (#13660973)
> but right now it's an atrocious book if you want to learn current C and this has been the case for a long, long time.

Strongly disagree.

Re:Master C++ Programming with Open-Source Books by jdhopeunique on Thursday February 16, 2017 @10:35AM (#13660659)
What's a good book for learning current C?
Re:Master C++ Programming with Open-Source Books by AsyncAwait on Thursday February 16, 2017 @12:07PM (#13661551)
I can recommend "C Programming: A Modern Approach 2nd Ed."[1].

1 - http://knking.com/books/c2/index.html

Re:Master C++ Programming with Open-Source Books by ChristianGeek on Thursday February 16, 2017 @01:45PM (#13662413)
Even though it was published in 2008?
Re:Master C++ Programming with Open-Source Books by AsyncAwait on Thursday February 16, 2017 @02:03PM (#13662566)
Absolutely!

There's not a whole lot that's changed in C11, (C is kind of "done" at this point) and there's not been a newer book that teaches the language so well.

Re:Master C++ Programming with Open-Source Books by curiousgal on Thursday February 16, 2017 @10:56AM (#13660883)
Ben Klemens' 21st Century C is good.