Intro
Learning a new programming language is not the easiest thing. In fact, it can be pretty frustrating, especially if that language is C++.
That's why I decided to put together a little helper.
Since I decided to learn C++, I wanted to do it in a more organized way, and I thought I'd share my learning environment in the hope that it might help others as well.
So, here is my cpp_learn repo. Let's take a closer look.
What is this?
This is a template for studying C++ and experimenting with code. It contains two main folders: examples and experiments.
The difference between these two folders isn't huge—it's mostly about mindset. I put structured, comprehensive, and reusable code into examples, while everything else goes into experiments. Of course, you're free to use the structure in whatever way works best for you.
How does it work?
If you check out the repository, you'll find a simple Makefile. Although compiling and linking are important parts of C++ development (and software development in general), I wanted to focus only on the language itself. Having the build process already set up makes learning much easier, and I believe it also makes the whole process a bit faster.
The Makefile provides a few simple commands for:
building everything
building a single file
listing available examples
running a built executable
building and running a single file
cleaning generated files
You can find all the details in the repository's README.
Outro
I hope this little project helps you learn this wonderful—and wonderfully brain-melting—language. And if you're still hesitating, maybe it will make getting started with C++ a little less intimidating.
Feel free to fork the repository or download it and start using it. If you find an issue or have an idea for improvement, let me know.
Oh, I almost forgot—other branches contain my personal learning journey, and things can get pretty messy there. Browse them at your own risk. 😄
Cheers!
Top comments (0)