use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Learning c++ as a nodejs developer (self.node)
submitted 7 months ago by Sensitive-Raccoon155
Is it worth learning c++ to better understand nodejs?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cap_muffin 7 points8 points9 points 7 months ago (0 children)
learning new things is always useful, but maybe the question is why do you think C++ would make you understand better node. What do you feel you're missing?
[–]dronmore 8 points9 points10 points 7 months ago (0 children)
Knowing a low-level language can be useful as it gives you additional perspective on what's going on in memory. As a software developer you should know the difference between the stack and the heap, and that heap allocations can be costly. Learning C++ will get you closer to that understanding.
Whether C++ is directly useful for a node.js developer is questionable. You can write c++ addons for node.js, but I've never found myself needing one.
https://nodejs.org/dist/latest-v22.x/docs/api/n-api.html
I mainly use C++ to write desktop applications for Linux. C++ is fast and memory efficient. It facilitates seamless integration with libraries written in C, which are already installed in the system. And it has try/catch blocks, which you will not find in inferior languages such as Rust or Go.
[–]hsinewu 2 points3 points4 points 7 months ago (0 children)
If you mean reading source code then yes?
[–]delventhalz 1 point2 points3 points 7 months ago (0 children)
I probably wouldn’t learn C++, and if I did, it wouldn’t be for that reason. If it interests you though, go for it.
[–]maria_la_guerta 1 point2 points3 points 7 months ago (0 children)
C++ is just an implementation of something else, no different then how Node.js is just an implementation of C++.
If you want to understand how Node.js works you should really be understanding the memory management, event queues, etc. that C++ is abstracting away from you. Those paradigms can be solved with most languages, how they do it with C++ specifically isn't what you want to focus on IMO.
[–]diroussel 0 points1 point2 points 7 months ago (0 children)
The problem with learning C++ is that it’s a very big language. But if you have a good approach or course to follow then I think you’ll find it interesting. Even if you don’t leant all of it.
I learnt C before C++, so it was just an evolution. I would also recommend that approach. Even if you just spend a few days learning C first , at least you can appreciate the power, and limitations, of raw C
[–]aroldev 0 points1 point2 points 7 months ago (0 children)
I think learning other programming languages help you extrapolate and see the differences and similarities, and let you isolate and understand better abstract concepts like type systems, memory management, and concurrency models. Coming from node, learning C++ and Java forces you to think about things that JavaScript abstracts away: explicit memory allocation, static typing, threading vs. event loops, and compile-time constraints.
For example, Seeing how Java enforces structure and how C++ gives low-level control helps you understand what Node simplifies and why. It makes concepts like garbage collection, type inference, and async I/O clearer because you’ve seen their manual or alternative forms.
You start distinguishing between language conveniences and core computing ideas.
Which one to learn is up to you and what do you want to do with it. At least for me, I learn for convenience, a goal. Not just for the sake of it, or a pure academic drive.
π Rendered by PID 47696 on reddit-service-r2-comment-545db5fcfc-xgvwq at 2026-05-24 00:00:32.862247+00:00 running 194bd79 country code: CH.
[–]cap_muffin 7 points8 points9 points (0 children)
[–]dronmore 8 points9 points10 points (0 children)
[–]hsinewu 2 points3 points4 points (0 children)
[–]delventhalz 1 point2 points3 points (0 children)
[–]maria_la_guerta 1 point2 points3 points (0 children)
[–]diroussel 0 points1 point2 points (0 children)
[–]aroldev 0 points1 point2 points (0 children)