Live data from Hacker News

3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

stroustrup.com

11–20 of 231 posts

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#11
post #2

Sharing the C++ Annotations here, which is a continiously updated book on modern C++. http://www.icce.rug.nl/documents/cplusplus/

If I just use C with classes, plus smart pointers and auto, for my emulator project(s), would that be a reasonably good approach?

I once heard that the C++ language contains 4 components: the first catalog is "C", the second is for OOP, the third is for productivity and flexibility such as stl and templates, and the last one is for special cases such as volatile, asm, etc. He then recommends to use catalog 1 with care, and avoid scenarios that one has to use catalog 4. Does that make sense?

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#12

Earlier quoted context omitted.

From https://www.icce.rug.nl/ I got https://fbb-git.gitlab.io/cppannotations/ , which does work.

Link works for me (firefox 125), but only if I use http (port 80), port 443 get me 404 not found as well.

Ah, you're right. The issue is the link switching from http to https (even though the supplied link is http) and Chrome making it difficult (by default) to see whether http or https is being used. If I just copy/paste the link it works fine in Chrome and Edge but clicking on the link they both switch it to https. Brilliant.

Just tested, works fine with Safari (mobile, but desktop usually has the same behavior).

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#13

I expected it to be even more of a tome, but surprisingly it's been cut in half! 2nd edition: Paperback ‏ : ‎ 1312 pages Item Weight ‏ : ‎ 4.81 pounds 3rd edition: Paperback ‏ : ‎ 656 pages Item Weight ‏ : ‎ 2.71 pounds

Nice to see C++ knowledge counted in pounds! :)

To be fair, someone should print the online reference material to get the real comparison.. it's not like we have fewer details in the standard library -- footnotes about compatibility with which version(s) and the related semantics could fill a book on its own.

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#16

I expected it to be even more of a tome, but surprisingly it's been cut in half! 2nd edition: Paperback ‏ : ‎ 1312 pages Item Weight ‏ : ‎ 4.81 pounds 3rd edition: Paperback ‏ : ‎ 656 pages Item Weight ‏ : ‎ 2.71 pounds

Nice to see C++ knowledge counted in pounds! :)

And it's 1229g for the rest of us.

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#18
post #14

Excellent! I have recently started doing the learncpp.com tutorial and I think this book might have come at the right time.

You might find the courses useful too:

https://github.com/federico-busato/Modern-CPP-Programming

https://learnmoderncpp.com/

Re: 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup

#20
I've always wanted to learn C++. I have a great handle on C#, making large applications and architectures as well as legacy refactoring in C#, and I would love to learn C++.

I recently started at a company with a bit of a hairy c++ application that I would love to refactor or understand more thoroughly. Is this book a good place.

Note that I have read a very basic book on C++ much more learning programming book, but got me introduced to the memory management concepts.

As well I've been getting through Effective C++: 55 ways..., but this seems more like a tips and tricks and I don't think I'm getting much out of it.

Post reply on HN