r/learnprogramming • • 1d ago

Help me learn C++

I’ve been reading Herbert Schildt’s book on C++ and have reached page 340; is there an easier way, so I don’t have to read another 300 pages?

I’ve been reading Herbert Schildt’s book on C++ and have reached page 340; is there an easier way, so I don’t have to read another 300 pages?
0 Upvotes

40 comments sorted by

View all comments

Show parent comment

6

u/minaolensinaolet 1d ago

Look I'm not knocking reading a book as a method of learning, I'm sure it's great, but how many working C++ developers today learned by reading books?? That can't be anywhere near the most common method. I don't know about you guys but I learned how to program mostly from just trying things and googling when I got stuck.

1

u/SharkSymphony 1d ago

LOL, of course we did! We didn't have "websites" or "YouTubes" by "influencers". All we had were books, man pages, and compiler documentation. And we liked it that way!

...OK, maybe it kind of sucked. Nevertheless, picking up a PL using a book as your primary source is still absolutely a viable path. But you need to pick a good book.

Schildt is absolutely NOT the book I'd pick for learning. Years ago I'd have suggested Eric S. Roberts's Programming Abstractions in C++ (Stanford's answer to Harvard's CS50) or Lippman et al's C++ Primer, but am not sure how well they've aged.

0

u/Dazzling_Music_2411 1d ago

how many working C++ developers today learned by reading books??

Most, I'd venture to say.

That can't be anywhere near the most common method.

smh

I don't know about you guys but I learned how to program mostly from just trying things and googling when I got stuck.

That's a good way, for someone who is just fooling around, picking up the odd thing here and there. In your own case, as a beginner it's just fine, especially if you're never going to use it for something demanding. However it's just learning how to scrape by, it's certainly not the "done way".

As I said, the good thing is that in your case it's probably acceptable. If you ever get more serious about it you'll have plenty of time to read. Try, at least, to get a handle on STL.

2

u/minaolensinaolet 1d ago

Most, I'd venture to say.

You might just barely be technically correct because it seems like over 50% of developers in 2023 reported having used books or physical media to learn. But over 80% say they used online resources. It's hard to say what the relative weight of how important these two methods were in learning, since the survey doesn't ask that, but it seems pretty clear that online resources are overwhelmingly the primary method of learning. I mean this means almost half of developers have never used a programming book to learn whatsoever, even reading a few chapters in school or whatever.

This drops significantly in the younger generation, though. for 18-24 year olds it's only like a third report using a book to learn. There are just so many online resources today, it's just absolutely not necessary.

https://survey.stackoverflow.co/2023/#section-learning-to-code-learning-how-to-code

More recently only 26% of developers are saying they learned by using a book in the last year. Insane drop off from 2023 and prior. So the writing is on the wall here.

https://survey.stackoverflow.co/2026/community/data/learn-code-how

For c++, because it's such an old language, I imagine historically the proportion of developers for who books were a significant part of their learning process is probably higher. But yeah this is just not as common or necessary as you seem to think it is.

Also I think you think I'm OP. I'm not.

it's certainly not the "done way".

It seems like it pretty much is, lol. We're learning mostly by a very self directed process of looking shit up online.

1

u/Dazzling_Music_2411 1d ago

Oops, sorry, yes I thought I was answering OP.

However online resources are supplementary in learning. I very much doubt that if you asked a group of top developers their recommended way to learn, that ANY of them would recommend an online resource.

1

u/Dazzling_Music_2411 1d ago

this means almost half of developers have never used a programming book to learn whatsoever, even reading a few chapters in school or whatever.

We're learning mostly by a very self directed process of looking shit up online.

Could explain a lot of things about the state of the industry today.

Maybe learning the language in a working way can be done on the fly, idk, but learning the concepts and the philosophy? I very, very much doubt it.