r/cpp • • Mar 14 '24

Is this book relevant?

https://www.mheducation.co.in/c-the-complete-reference-9780070532465-india

So 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.

2 Upvotes

40 comments sorted by

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.

4

u/ElephantCharming8665 Mar 14 '24

At this point I will just give it for recycling.

24

u/[deleted] Mar 14 '24

Make sure it’s definitely destroyed. A child may find it and be damaged for life.

4

u/ElephantCharming8665 Mar 14 '24

But to ask what is the problem with this book? Is the outdated way it tells you to write the code? Or anything else?

10

u/[deleted] Mar 14 '24

it’s written by a person who has no idea what he is talking about. It teaches things that are simply wrong and dangerous. Code examples that show a complete lack of even a minimal understanding of how the language or its library works and supposed to be used. This book has never been correct.

8

u/ElephantCharming8665 Mar 14 '24

This book has got itself to the next level of hate online. No wonder so many people hate it. Thanks for the caution.

3

u/[deleted] Mar 14 '24

No problem. I help people when I can. It’s better to prevent people from learning bad things than having to clean up the results.

6

u/STL MSVC STL Dev Mar 15 '24

Yep. I once reviewed a chapter or two of a Schildt book for correctness early in my career. It was the worst thing I've ever read.

3

u/[deleted] Mar 14 '24

When I just got into the language, I was recommended a beginner book by Schildt. It was in C++98. Good thing I got The C++ Programming Language (4th edition) as my next book.

2

u/[deleted] Mar 14 '24

You have dodged one there.

2

u/NormalityDrugTsar Mar 14 '24

How dare you! I am Herbert Schildt is a best selling genius!

2

u/[deleted] Mar 14 '24

He is a selling genius, nobody doubted that. ;)

1

u/MikeVegan Mar 15 '24

Haha, could you please share some the suggestions from the book?

2

u/[deleted] Mar 15 '24

I don’t have it within 5 nautical miles of me.

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++.

https://stackoverflow.com/a/388282

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

u/[deleted] Mar 14 '24

has changed since then.

for worse

2

u/WoodyTheWorker Mar 16 '24

Schildt? NO.

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

u/[deleted] 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

u/[deleted] Mar 14 '24

Nope, too outdated.

You'd be surprised. Most applications stick with the basics.

1

u/[deleted] 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

u/[deleted] Mar 15 '24

why? I dont use move semantics. It's not performant

1

u/[deleted] Mar 15 '24

Rule of 0.

0

u/[deleted] Mar 15 '24

Rule of 3 actually.

1

u/[deleted] Mar 15 '24

No. Coding in C++ without rule-of-0 is pain.

-18

u/[deleted] 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

u/[deleted] Mar 15 '24 edited Mar 15 '24

[removed] — view removed comment

-5

u/[deleted] 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

u/[deleted] Mar 15 '24

[removed] — view removed comment

0

u/[deleted] 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.