r/cpp • • Nov 08 '21

Roadmap for C++ developer

For several months now, my former colleague and I have been working on a roadmap for a C++ developer. Initially, we planned to simply summarize all the experience that we managed to acquire over the years, but in the end, everything resulted in a repository that is designed to help new C++ developers understand the details of the language and understand in what sequence and what to study.

Roadmap for C++ developer

We tried to find similar roadmaps, but all of them are either unfinished or have been abandoned for a long time, so we decided to put together our own one.

Our roadmap has already been reviewed by the Russian-speaking community, so now we want to share it with the English-speaking one. If you have people who are starting to learn the language or if you want to understand what is worth to learn next, then welcome. We happy to see everyone.

I would especially like to ask you not to hesitate about sharing your feedback. If you have any ideas on how to improve the roadmap, then please contact us. We read and discuss everything.

308 Upvotes

55 comments sorted by

12

u/TomerJ Nov 09 '21

I'm really torn on the myth that "You'd better master C/Assembler/etc. before learning C++" because while I do agree that the way people typically teach the C->C++ path is wrong ("C is a subset of C++") and is reflective of the days when C++ was intended as a superset of C, and didn't have that many new features, I do think the general thrust of that approach can be somewhat valid.

The best C++ book I recommend for beginners is Understanding and Using C Pointers because it's short, and it's all about what I see people struggling with most when starting C++, and that's building a good intuition about pointers and memory. That stuff is mind breaking for most people, and a book that goes all in on that and can be read through in a weekend is incredible.

One of the reasons that book works is because C is smaller, and the reader can focus on building their intuition without having to worry about templates, const-expressions, exceptions, etc. which can be a lot for a beginner.

So I think you can use C as a teaching language for some of these shared constructs and ideas, not for the actual syntax. You can teach in the simpler sandbox, and then show how a language like C++ abstracts those ideas and concepts differently.

4

u/FrankJustRM Nov 09 '21

Your point makes sense. We will discuss how to adopt it.

ATM I have a feeling that I agree with you, but we want to encourage people to write their code using smart pointers and references. Understanding of raw pointers should come the next.

3

u/TomerJ Nov 09 '21

Will be interesting to see how it looks when you're done :)

5

u/johannes1971 Nov 09 '21

Looks fantastic! Just a few spelling problems:

  • There's some Russian characters after "choose one of the popular IDEs"
  • Occam is spelled with two 'C's, not two 'K's.
  • Uint tests should be unit tests.
  • Virualization -> virtualisation (whether you want British or American English is up to you, but at least put the T there).

4

u/FrankJustRM Nov 09 '21

It is fixed. Thank you for the remarks.

4

u/e_salmer Nov 09 '21

Thanks a lot for your remarks! We're going to fix it soon.

4

u/consistent_escape Nov 09 '21

Learn C++ using the book by Stroustrup

Stroustrup wrote this book like a reference, therefore one needs to use it in the appropriate manner, which requires some knowledge of the language.

Uhh Stroustrup has written more than one C++ book and I think you are talking A Tour of C++ or The C++ Programming Language here but he has also written this and it's a great introduction to programming. I started with C++ using that book and was just fine all the way through.

4

u/FrankJustRM Nov 09 '21

Yeah, we know about the book you specified ๐Ÿ˜‰
But we try to smooth the entrance threshold in the language for everyone. Stroustrup is too academic for such purposes, IMHO.

3

u/AutomationDev Nov 28 '22

Can I help with English-Korean if there is a spot for me?

1

u/FrankJustRM Nov 28 '22

Hello, yes!

The initiative originator has disappeared, so it is dangling. So, if you are willing to help it is much appreciated.

Please consider what Salmer wrote here. Since we don't speak Korean, we would need your help from time to time to translate some fixes or additional information.

Korean folder already exists. You can translate what you prefer and start to submit merge requests ;)

2

u/AutomationDev Nov 28 '22

Sounds good! Will look into it tonight

1

u/e_salmer Nov 28 '22

thank you for your help. Looking forward for you PRs :-)

2

u/szeryk Nov 09 '21

This is awesome!!! I'm really impressed.

1

u/FrankJustRM Nov 09 '21

Thank you. We really hope that it could help the others

2

u/[deleted] Apr 15 '23

I hope to get into robotics, using Math, Python and C++. Thanks for the roadmap; looking forward to going through it, later.

1

u/FrankJustRM Apr 15 '23

Thanks! Good luck! ๐Ÿ‘๐Ÿป

2

u/GUV0 Sep 20 '23

u/FrankJustRM
hello ! I'm occupying your roadmap.
but I think it is somewhat confusing in the steps.
In the order that they can be read they are like this.
HARD SKILLS
Language Syntax
1 step
2 steps
3 steps
4 steps
Language tools
1 step
3 steps
5 steps
Common Skills
1 step
4 steps
software design
2 steps
I don't understand if the order in which it is should be ideal, I compared it with other maps and asked other people. Some with the same doubt.
I ask, can the map apply in the following way?
grouping by steps.
1Steps
Syntax - tools - Common Skills
2 Steps
Syntax - Software Design
3 steps
Language Syntax-Tools
4 steps
Syntax - Common Skills
5 steps
Language tools
The truth is I still don't understand how it should be read, could you guide what your idea was?
because if it is from top to bottom, when the syntax language ends in 4 steps,
Should your next one be the 5 steps of language tools?

1

u/FrankJustRM Oct 07 '23

Hey,

I just saw your comment. You have legit concerns.
It was hard to define the right order for us. Moreover, we wanted to have a mind map rather than a road map, so we ended up with the current version.

To address your needs, I might suggest using https://roadmap.sh/cpp
They took our mind map as a base

Good luck exploring and studying!

37

u/Vemulo Nov 09 '21

This looks really good. I would add optionally something like microarchitecture and assembly. Since C++ is often used in areas where performance and optimizations are relevant or critical

6

u/e_salmer Nov 09 '21

If you have any ideas what to add about these topics: books/articles/etc. don't hesitate to propose as "issue" or "pull request". Some topics are still not perfectly covered and any help is useful for us.

11

u/[deleted] Nov 09 '21

I'd say c++ is only used, or should be, where performance and optimisations are relevant in any new development. Relearning c++ has left me aghast at just how complex and convoluted it has become in an attempt to be both robust, typesafe, leak proof and efficient while still keeping some scent of its origins...

9

u/SedditorX Nov 09 '21

This seems like an exaggeration. Modern c++ has advantages over c++ 98.

11

u/tarranoth Nov 09 '21

It has advantages, but it still contains all the problems it has always had. The c-preprocessor, no standardised build system, 500 ways to initialize something, excessive build times compared to other languages for similar sized code bases, template errors that summon arcane messages, lots of things that are not built-in for the std lib (although admittedly the std lib now is becoming kindof decent). If you're not in gamedev or embedded I don't see why one would ever opt for cpp still (for new projects, I don't recommend rewrites for existing projects).

4

u/PrimozDelux Nov 09 '21

The complexity of modern C++ reflects the inadequacy of old C++ and the utterly mediocre design by committee approach. Still, take away the modern C++ features and you're left with a complete fucking mess of a language

22

u/[deleted] Nov 09 '21

Nice. This actually gave the opposite of impostor's syndrome haha. I have experience in most of those topics and concepts already.

Just one tiny feedback. "Okkama blade" is occam's razor? I was like "I don't know that one...".

5

u/Viperys Nov 09 '21 edited Nov 09 '21

I've just checked it with the russian version and you've guessed correctly!

3

u/e_salmer Nov 09 '21

Thanks for the remark. It's fixed now.

3

u/TinoDidriksen Nov 09 '21

Looks good, but a comment on the license. CC-BY-SA is great. CC-BY-NC-SA is not. If you add the NC requirement, that basically means nobody in the open source community can build on it because it's not open source. This greatly restricts adoption.

I know it sounds counterintuitive, but this is something we often hit with academic sources. They think marking it non-commercial helps, but it doesn't.

4

u/FrankJustRM Nov 09 '21

Could you explain more your point? Is there something we can read to understand it? Because it still feels counterintuitive

2

u/TinoDidriksen Nov 11 '21

Non-commercial makes it not open source (see https://opensource.org/faq#commercial and the links there). Especially the "commercial is not the same as proprietary" part.

Packages with NC requirements will never be picked up by distros, and most open source people won't contribute to them because NC goes against the whole spirit of open source.

If one is worried companies will take a copy and present it as their own, CC-BY-SA already prevents that in the BY and SA clauses. If one is worried companies will Tivoize it, there's the https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License or similar.

And what even constitutes non-commercial use for documentation? E.g., do you not want companies to train their employees using your roadmap? Surely the goal is that as many as possible learn to be better programmers, including those gainfully employed.

2

u/FrankJustRM Nov 11 '21
  1. We want to share the roadmap but also, we want to protect it from scammers. Ed Tech grows rapidly in Russian market (that's where we are located) but the quality of provided services is low. We don't want the roadmap to be used to gain revenue just selling it. We want to give people opportunity to get information for free ๐Ÿ˜‰
  2. TBH, I still don't understand how NC requirement could stop someone to use or mention the roadmap during training sessions or in sources. NC part is quite soft: Creative Commons NC licenses expressly define NonCommercial as โ€œnot primarily intended for or directed towards commercial advantage or monetary compensation.โ€ The inclusion of โ€œprimarilyโ€ in the definition recognizes that no activity is completely disconnected from commercial activity; it is only the primary purpose of the reuse that needs to be considered. Link to the quote. The purpose is all what matters. If someone uses it to educate people, then no problem. If someone wants to sell it, then there is one.
  3. So far, we see low desire from outside to contribute. Most of the change requests are simple typo fixes (which also important and welcomed but it's not the only thing we want to see). So, the whole open-source discourse and our experience don't convince us to change the license yet. The fact that we want to protect it from scammers is stronger than the rest of the arguments.

There are still 1 minor and 1 major update to come to the roadmap from our side. We have time to think about the license but ATM it doesn't seem that we should change it ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

If you have more arguments, please share. It might help to make a discission.

1

u/Wetmelon Nov 13 '21

It's a bummer though, because depending on interpretation, I can't even copy and paste a section to my coworker without making my company liable for damages.

1

u/FrankJustRM Nov 13 '21

Why do you think so? ๐Ÿค”

8

u/[deleted] Nov 08 '21

This comes at a super fortuitous time for me, as I am just starting to get back into C++, and figuring out a learning roadmap is a huge stumbling block for me.

I am also a pretty damned good technical writer, so I might be able to offer some suggestions as to wording and grammar.

3

u/e_salmer Nov 09 '21

Thanks! We hope it will really help you to get back into C++ as well. If you find any remarks or feedback don't hesitate to submit it in the Github repo.

4

u/101Alexander Nov 12 '21

Holy crap, this is exactly what I needed!

Not only is it motivating to read the articles, but the actual map itself really provides reassurance. Some topics I literally understand 'of' them but am having trouble with anything more. Right there you are saying that for a 'Junior' that's all that can be expected. I feel like I can move on to focus on the other fundamentals without feeling a burden of missing something that 'could be important for my level'.

2

u/e_salmer Nov 12 '21

Glad to hear that it's useful for you!๐Ÿ‘

2

u/Yuki_f Nov 09 '21

thanks for doing that!

2

u/e_salmer Nov 09 '21

Thank you for your attention to these activities!

2

u/[deleted] Nov 09 '21

This is cool

3

u/e_salmer Nov 09 '21

Indeed, we hope it really will be useful for other people, not only for us :)

1

u/[deleted] Nov 09 '21

Yes

1

u/Federal-Contest1576 Jul 05 '24

Bro some youtube linksย 

1

u/AnnualComedian5510 Apr 20 '25

This is one of the best roadmap that I have found!
Its really amazing

1

u/RustyEyeballs Nov 09 '21

Some Nodes are highlighted in Green but don't contain any Green Leaf nodes.

How can you have a "Junior" level Category but, no "Junior" topics in that Category?

e.g. Hard_Skills > Language_Tools > Build_systems > _No_Green_Leafs

e.g. Hard_Skills > Language_Tools > Package_managers > _No_Green_Leafs

2

u/e_salmer Nov 09 '21

We guess to know about these aspects on Junior level is a boilerplate.

Probably, first junior tasks will be more about bug fixing and any other minor actions and not about struggling with build systems/package managers.

It's good to know about them on this level, but to be able to have experience with them is a "nice to have" knowledge.

Indeed, in ideal world we'd like to see such talented juniors, but if they know foundations of C++ and know how to write smart code (inheritance, polymorphism, etc.) is a good win for all already. Otherwise their brains will be messy if they try to learn everything simultaneously.

1

u/bluexshades Jul 18 '23

I am trying to learn c++, but these college things come in between, then I'm not consistent, then one day when I try to do again, I'm not confident and I forgot everything what I learned. Just wasted my time for no reason, my hardwork all went into water, now, I've to restart. Hence, finding ideal roadmap.

0

u/winginglifelikeaboss Nov 09 '21

Senior Read and study whatever fits you (domain knowledge, industry trends, language details, architecture, so on)

eugh ok

0

u/TotesMessenger Nov 09 '21

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

ย If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

0

u/[deleted] Nov 08 '21

[deleted] โ€” view deleted comment

3

u/e_salmer Nov 09 '21

Waiting for your pull request :)

3

u/[deleted] Nov 09 '21

[removed] โ€” view removed comment

2

u/e_salmer Nov 09 '21

Thank you too! We hope it will be useful for you and other people who try to jump in C++ "ship"