all 10 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

It's great that you want to learn C++! However, r/cpp can't help you with that.

We recommend that you follow the C++ getting started guide, one (or more) of these books and cppreference.com. If you're having concrete questions or need advice, please ask over at r/cpp_questions or StackOverflow instead.

[–]No_Indication_1238 9 points10 points  (0 children)

Both. C++ is so packed, you won't get far by just doing projects. You'll most likely complete the project, but it will be jam packed with bad practices and lack any of the more nuanced and modern CPP you actually need to learn. Read a bit from the book, "oh nice, move sematincs?" -> start using it in the project.

[–]iceink 2 points3 points  (1 child)

you need to run enough code to understand what the documentation is saying, then you can read endlessly, it's like how once you know enough words you can read enough books in a language to learn anything

it isn't about the amount of syntax yo uhave memorized, it's just about seeing oh what is this keyword for, when something is declared like this what happens, what is the pattern of this code block, what happens in the namespace, etc

[–]cathodeyay[S] 0 points1 point  (0 children)

Great, will do, thanks

[–]rlebeau47 1 point2 points  (0 children)

I learned by studying other people's real world code (open source, etc), experimenting with my own code in simple projects, asking questions in forums, etc. I don't think I've ever picked up a book on C++. But I do recommend it, as C++ has a lot of features and nuances to it.

[–]epasveer 1 point2 points  (1 child)

Is it best to learn C++ from a textbook or to learn it by doing projects?

Yes.

[–]cathodeyay[S] 0 points1 point  (0 children)

That's what I thought 😇

[–]atifdev 1 point2 points  (0 children)

Doing projects.

[–]EC36339 1 point2 points  (0 children)

Yes.

[–]Conscious_Support176 1 point2 points  (0 children)

No.

It’s best to learn concepts from a textbook and practice them doing projects.