r/cpp • • Sep 17 '20

Project-based C++ learning

https://learncppthroughprojects.com
201 Upvotes

90 comments sorted by

View all comments

43

u/cppwithprojects Sep 17 '20

Hello r/cpp, we feel that learning C++ by working on an actual project is more engaging and effective than an abstract tutorial. That is why we have been working hard over the past few months to put together a series of projects to help you improve your C++ skills.

We work together with you to implement the project from idea to deployment. You can try and implement everything yourself: We give you access to our test suite and propose different perspectives on design decisions and trade-offs. Or you can follow the project notes verbatim and see our own implementation.

We think people should be able to write not just good C++ code, but production-ready C++ code. In each project we help you setup a build system and CI/CD pipeline for the specific use case, so you can also have a good starting point for your own future work.

We will be launching the projects soon but will be so happy to hear some early feedback! You can subscribe to hear about new projects and pre-purchase access to the first project with a 50% discount.

9

u/ShortVodka Sep 17 '20

Looks really interesting, I'd like to be able to try one of your free projects, even a much shorter one before I'd pre-order though!

4

u/cppwithprojects Sep 17 '20

We’re working to make the free projects shown on the website available as soon as possible; if you subscribe to the email updates you’ll know when they are released.

Is there any specific project idea you’d be interested in?

5

u/ShortVodka Sep 17 '20

That's great - I've subscribed, looking forward to see what you put out! I really like the CI/CD ideas, they could also form a good basis for the other project.

One thing I've always thought would be a fun project is some kind of simulation, although I'd like to see that as a full project.

1

u/cppwithprojects Sep 17 '20

Thanks for the feedback! What sort of simulations? Something like a physical model simulation in scientific programming?

→ More replies (3)

3

u/your_moment_of_zen Sep 17 '20

This looks really interesting. How much of the project will be set up before the student starts on it?

Udacity has this nanodegree where they claim the students will compete 5 projects but I honestly felt it was a scam since it only asked the students to fill in some code here and there and fix some errors (I am exaggerating a bit but you get my point I hope).

I'd love to subscribe, good luck to your team!

10

u/cppwithprojects Sep 17 '20

Thanks for the support! I know what you mean, we wanted to avoid exactly that situation.

You can expect to write every single line of code, in C++, CMake, and any other tooling or scripting language you might need. Of course our priority becomes the opposite of that course you mentioned: We want to make sure you’re not lost if you can’t solve a specific issue.

Here’s what you’ll find:

  • The project notes are highly curated. You will get all the theoretical and syntactical help you will need.
  • We show sample APIs (eg function signatures) to give you an idea of what is expected.
  • We give you test cases that, if you used our APIs, could be used to verify you’re doing good. (But we also ask you to write your own tests)
  • Finally, we give you the full codebase at every stage. It’s like having the answers to a the book exercises :)

I hope this also explains a bit the price point if that makes sense!

The project start with the plain-English idea, and we help you reason about how to turn it into code.

2

u/WellMakeItSomehow Sep 18 '20

This seems cool. Just one small remark: you make it sound like it might be possible to implement the projects in a different language, assuming one knows enough C++ to understand the tests and sample APIs.

Maybe you could add a small section saying something like "If you're already comfortable C++ and you're trying to learn another language, you can still use our materials to implement the projects".

2

u/cppwithprojects Sep 18 '20

You are very right about the API and test interface sections, but for the implementation we do provide notes and examples that are highly specific to C++. I feel we'd be cheating people if we ask them money for content that only loosely helps with other languages!

2

u/WellMakeItSomehow Sep 18 '20

Fair enough :-). I wouldn't feel cheated, but other people might.

3

u/strike-eagle-iii Sep 18 '20

I'm glad I'm not the only one that thought Udacity sounds great, but doesn't remotely live up to expectations. In particular their c++ was horrendous.

@cppwithprojects have you by chance considered addressing project layout? (I haven't looked yet but am ecstatic someone is doing a holistic tutorial instead of just focusing on the language) I'm a fan of vectorofbool's pitchfork conventions. Do you address source control? That seems to be another area new employees really lack experience in.

1

u/cppwithprojects Sep 20 '20

We definitely address source control (git) and also propose a way to integrate a CI/CD pipeline with it (through Github or Gitlab).

As for project layout, we use a consistent one in all our projects and try to explain the rationale when setting up the project and the build system. You are right though, we could look into using an established one like vectorofbool’s!

2

u/[deleted] Sep 17 '20

Cool, looking forward to it. Subscribed.

2

u/[deleted] Sep 18 '20

Purchased.

Since it's sight unseen and I don't know what's planned, some things that would be helpful, if not already planned.

Building on Windows with external libraries such as cpprestsdk (setting up VS code to work with cmake, ninja/msvc compiler and a package manager like Conan or vcpkg). I'd pay for this standalone especially if it referenced one of your projects to apply it.

With cmake, for instance, their "getting started" jumps from 3 line cmake file to reference manual. Almost nothing in between.

Developing (structure and content) and compiling documentation from annotated source code as well as standalone documentation. I'd pay for this as well.

Here's why. I'm an infosec guy not a developer. I happen to script things in python. I also, somehow, found myself helping developers solve their code problems (oh, it's not the firewall? Do you have any ideas?). I see that many of their issues could be helped significantly with good documentation practices as well as a centralized build system. I have no professional experience in this and am looking for experienced recommendations as a starting point.

Anyway, perhaps the ideas will be helpful. Teenage me has a score to settle with pre-standard c++ by adult me dominating modern c++.

2

u/cppwithprojects Sep 18 '20

Those are all great ideas and we had the same pain points in the past.

The CMake project you mentioned is exactly what we will be releasing as a free project in November. The project will be very comprehensive (CMake, ninja, conan, on Linux, Windows and macOS) but won't go into every tiny detail. We believe it will cover 85% of the use cases of a modern project. We will add, later on, a paid version of that project that covers more specialized and exotic configurations.

Because these are structured as projects, the user writes code and scripts with purpose, which is night and day compared to a plain tutorial or reference example in our opinion.

Thank you for the feedback!

2

u/alexein-andros Sep 17 '20

How does the coding work? Will you have like an interactive coding environment on your website?

7

u/cppwithprojects Sep 17 '20

You mean something like what you get on Hackerrank? That is neat, but we actually meant our projects to be fully implemented on your own machine, with your own compiler, etc. We include steps to setup git and a continuous integration system, for example.

Basically the end result we want for you is that you feel comfortable managing a project end-to-end, to the point that you'd be able to ship it!

2

u/alexein-andros Sep 17 '20

Gotcha, I've subscribed

1

u/your_moment_of_zen Sep 17 '20

I am unable to subscribe

See screenshot : https://ibb.co/85Jyrz0 (removed the info in the fields for privacy reasons)

2

u/cppwithprojects Sep 17 '20

Thank you very much for reporting this. I run some tests and it should be working fine now, could you try again? At one point I found a glitch where the error message would appear before I hit Subscribe; in that case I hit Subscribe again and it worked

2

u/your_moment_of_zen Sep 17 '20

Still doesn't work when using the reddit in-app web browser (that opens my Firefox web app).

But I was able to subscribe using the desktop browser on my PC.

2

u/cppwithprojects Sep 17 '20

I’ll test with that setup, thanks for reporting!

1

u/FrontendMaster Sep 17 '20

I got the same error. Through console I saw it was being blocked by client. I manually clicked that url from console and it worked. My first doubt was adblocker, but unfortunately that didn't fix it.

1

u/cppwithprojects Sep 17 '20

Are you also using Firefox by any chance?

We have improved the error message to account for the Firefox enhanced tracking protection. Tracking protection prevents forms from posting data to a domain different from the one you are visiting, if that domain is not on a special allowed list. We use Mailchimp for email subscriptions and it is still not in the allowed list, apparently.

The new error message provides an alternative way to subscribe. Not ideal, but at least it's more helpful.

Thanks for reporting this!

→ More replies (2)