TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Best path/resource to learn modern C++ in 2022?

32 pointsby abhimskywalkerover 2 years ago
Having searched multiple places, it seems there are mixed opinions on best way to start learning C++ across time and internet forums.<p>For experienced programmers (Python, JS, Java, Kotlin, etc.), what&#x27;s the best way to pickup modern C++?<p>What are best resources you have come across for C++?

8 comments

maldevover 2 years ago
You need to choose a domain. Find software and libraries in that domain and then work off of that. &quot;Modern C++&quot; can mean alot of things. Most people conflate this with the STD library, but alot of people don&#x27;t use that. Core language feature wise it&#x27;s not that much. Some &quot;Modern&quot; c++ domains don&#x27;t even use the STD.<p>This is similar to asking &quot;What is the best way to learn modern Java&quot;, where the answer will vary vastly based off what whether you&#x27;re doing embedded, desktop, server, serverless, websites etc.<p>Possibilities for &quot;modern&quot; C++ domains. HPC, Machine Learning, Finance, Gamedev, Crypto, Scientific... Also keep in mind most are going to be writing C with Classes and target C++11 at most.
评论 #32936843 未加载
pajkoover 2 years ago
<a href="http:&#x2F;&#x2F;tmplbook.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;tmplbook.com&#x2F;</a> and study the source code of some good-quality open source project, for example <a href="https:&#x2F;&#x2F;github.com&#x2F;fmtlib&#x2F;fmt&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fmtlib&#x2F;fmt&#x2F;</a><p>and this could be also handy: <a href="https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;meta" rel="nofollow">https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;meta</a>
nbaksalyarover 2 years ago
C++ Crash Course [0] should be a good start. It will teach you all the important basics without the legacy stuff.<p>[0] <a href="https:&#x2F;&#x2F;nostarch.com&#x2F;cppcrashcourse" rel="nofollow">https:&#x2F;&#x2F;nostarch.com&#x2F;cppcrashcourse</a>
scombridaeover 2 years ago
<i>For experienced programmers</i><p>Start with getting an entry-level job doing C++, which 1. financially incentivizes, and 2. gives you something concrete to work off of. I am an experienced programmer.
评论 #32926702 未加载
soheilover 2 years ago
Dive into a project like Firefox, build it on your platform, then focus on a component that you can visually test, start hacking, make silly changes and just go to town.
AnimalMuppetover 2 years ago
I would start with Stroustrup&#x27;s <i>A Tour of C++</i>.
评论 #32930804 未加载
评论 #32935527 未加载
hazycover 2 years ago
If you want a thorough reference of C++20 and enjoy 1000 page textbooks (I do), then I can recommend &#x27;Professional C++&#x27; by Marc Gregoire.
PaulHouleover 2 years ago
You sure you want to?
评论 #32936755 未加载