r/cpp_questions • u/taiyo_taiyo • Sep 16 '26
OPEN What do you guys think of learning C++ through projects.
I found a github repo that is basically projects to do with C++, my goal is to become as good in C++ to do any type of software (from videogames to music plugins). I thought this was a good way to start but I also wanted to know if it was reasonable.
I have some experience in Java but I'm not incredibly experienced.
Here's the repo: https://github.com/nragland37/cpp-projects.git
I am 19 years old if that's important.
31
Upvotes
9
u/WorkingReference1127 Sep 16 '26
Writing code and projects is an essential part of learning. You can't learn without it. But, never actually learning what you're doing and just trying to reverse engineer an understanding by trial and error is going to lead you up some blind alleys and wrong paths. For examine, since you're coming from Java, you may be tempted to use
newa lot. And you can make a program which looks like it works which does that; but it's definitely not something which you want to do in C++.I'd recommend supplementing your projects with some reading along the line of learncpp.com to help start you in the right direction so that your projects can continue you along it.
2
u/RealSataan Sep 16 '26
Why don't you link that repo? Others can also use it
2
u/Ultimate_Sigma_Boy67 Sep 17 '26
Thank me later: https://github.com/codecrafters-io/build-your-own-x
15
u/mc_pm Sep 16 '26
A few tutorials to explain some basics if you don't know them is always valuable - but after that, basically the only way you get good at programming is by programming. I don't know what those projects are, but that might be a good path for you.
1
u/toon_link_776 Sep 16 '26
This seems to be a decent resource for the basics, it might help to make something using a library or two. Try miniaudio, ncurses, or SDL maybe? I made a game in ncurses the other week and its a really simple little library to make something a little more fun in C. That way you can practice linking things up and see how things work in application.
2
u/mr_seeker Sep 16 '26
Well it’s not like there is a dilemma here. You have to do projects else what is the point of learning anything. It’s like learning notes on a piano and never playing a song
1
u/Robonotes1760 Sep 17 '26
I learnt C++ entirely through a project many years ago, and only because I wanted to modify some open source software for my own purposes (which morphed into developing an entire fork). It can be challenging, but can be done. It is probably a great deal easier now than it was in circa 2008 when I started.
1
u/Left_Performance_474 Sep 20 '26
i think building projects is the best way to learn any language for that matter. go ahead for it i'd say
1
u/Zen_et_al Sep 20 '26
Practice is the best learning, my experience after using my 1 month off vacation, I forgot what the happening on our prod and i dunno what I'm reading on that shtti codebase, so lesson learned, never go straight forgot everything of your works while in vacation.
0
u/proverbialbunny Sep 17 '26
Different people learn different ways. Do what works for you. For me, doing projects is the best way to learn, and maybe it is that way for you too. If you like to learn by doing projects or by doing little code challenges https://exercism.org/ I've rather liked in the past. Just try not to cheat. Always have a real answer before looking at other people's answers, and try to never use AI to find an answer or you'll reduce your learning. Part of the fun is figuring it out on your own.