r/cpp • u/ElephantCharming8665 • Mar 14 '24
Is this book relevant?
https://www.mheducation.co.in/c-the-complete-reference-9780070532465-indiaSo I had bought the above book back in 2019. I was wondering is this book still relevant for today? Or are there any other book which I can refer. Please help.
16
u/jedwardsol const & Mar 14 '24
No, it was written in 2003. C++ has changed since then.
See the link in the sidebar
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
2
u/ElephantCharming8665 Mar 14 '24 edited Mar 14 '24
Yes thats what I thought that reading will be the best way to learn c++. Appreciate the link, but if you have to suggest one or two good books that can cover everything from scratch. Which one they will be?
3
u/HAL9000thebot Mar 14 '24
i'm not the guy you asked to, but, read these two in this order:
c++ primer 5th edition
a tour of c++ 3rd edition
if you are already really proficient in another language, just read the latter, but i suggest you to read both of them anyway.
1
u/ElephantCharming8665 Mar 14 '24
Thank you very much for your suggestion. Will download these two books immediately. Thank you.
5
u/HAL9000thebot Mar 14 '24
oh i forgot to tell you the most important thing, in your journey keep always an eye on this excellent site, cppreference, you can't memorize all, this is the reference you need and should trust, others aren't of the same quality (to use an euphemism).
3
u/CaptainCrowbar Mar 14 '24
Note that C++ Primer is absolutely not to be confused with C++ Primer Plus, which is a very different and very inferior book.
-5
2
1
u/Briggie Mar 14 '24
You would be learning on the 03 standard if that. While it wouldn’t be hard to learn the new features, so much has changed since then (lambdas, smart pointers, and constexpr) that you might as well just learn on a newer standard.
-6
Mar 14 '24
Understanding how modern C++ is partly just lipstick on a pig that was C++03 is certainly useful, if you want to be a master of C++. It's probably not a great resource for that purpose either, but maybe ok.
But for any practical application today, or for learning C++ today... Nope, too outdated.
0
u/ElephantCharming8665 Mar 14 '24
Suggest some book sir that can cover everything from start to end.
-4
Mar 14 '24
Nope, too outdated.
You'd be surprised. Most applications stick with the basics.
1
Mar 15 '24
Which is why learning the old stuff is somewhat useful.
But any code written today should use at the very least C++14 or C++17, even if code base was started in 1990's.
-1
-18
Mar 14 '24
YES. I feel everything after C++11 has mostly been a waste of time.
If you want 101% the power of C++ less then complexity of all the newer standards, get the book.
Worth it!
2
Mar 15 '24 edited Mar 15 '24
[removed] — view removed comment
-5
Mar 15 '24
who wants to stop learning
All post-c++11 stuff has nothing to do with performance and that's what I focus on.
I then went to learn how to use GPUs and FPGAs. After 10 years I'm sort of an expert on that. Extreme gains in performance, from microseconds to nanoseconds. Way better pay. Much better use of my time. 10/10 do not regret the choice.
Still, my "dino" C++ coding style still beats the shit out of all C++20 stuff out there.
0
u/Wolf_e_wolf Mar 15 '24
Are there any books for intentionally learning what parts of C++ to focus on for that level of performance? I guess pure C would be the place to start.
0
Mar 15 '24
[removed] — view removed comment
0
Mar 15 '24
Good thing that junior devs, interns understand my code at a glance.
We can then have a much cheaper and productive team. No need to hire gurus, experts or PhDs.
39
u/[deleted] Mar 14 '24
Absolutely not! Not even when it was published. Try googling bullschildt. I spent 2 years of my life undoing the damage this book did to a team.