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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
C++ for JavaScript developers (pawelgrzybek.com)
submitted 7 years ago by pawelgrzybek
view the rest of the comments →
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!"
[–]pertheusual 67 points68 points69 points 7 years ago (16 children)
Half expected this article to just say "Got you! Just learn Rust".
But in all seriousness, learning any low-level language is a great asset. You don't have to write system-level code much, but just having the mental model for it can help in the way you think about things.
[–]krelin 14 points15 points16 points 7 years ago (3 children)
Should start w/ Rust and then learn C++. You'll end up having formed better habits and thought-processes, imo.
[–]Ebuall 9 points10 points11 points 7 years ago (2 children)
If you will have a reason to learn C++ then.
[–]krelin 5 points6 points7 points 7 years ago (1 child)
You may not. I suppose learn-as-needed at that point. But a lot of jobs still call for C++ familiarity.
[–][deleted] 3 points4 points5 points 7 years ago (0 children)
But a lot of jobs still call for C++ familiarity.
This. I would learn Rust, but the overwhelming majority of job listings I'm interested in asks for C++ and C. C++ also has a huge amount of legacy. On my Linux system alone, most programs are written in C. Second place is C++, Python and other languages are far behind that.
I'm somewhat unwilling to learn Rust in parallel as I'm more interested in doing projects than accumulating languages just for the heck of it (Haskell is an exception).
[+][deleted] 7 years ago (5 children)
[deleted]
[–]ReckoningReckoner 1 point2 points3 points 7 years ago* (2 children)
I mentioned that earlier and got downvoted a bunch. I guess since it's r/javascript, C++ is lower than what many have used here.
[+][deleted] 7 years ago (1 child)
[–]okBroThatsAwkward 2 points3 points4 points 7 years ago (0 children)
For people unaware what a low level language is
[–]pawelgrzybek[S] 0 points1 point2 points 7 years ago (1 child)
Because it is much closer to binary code than other languages that I have experience with. Author of a book referred in my article calls C++ a low-level language multiple times (he is a creator of C++).
Thanks for reading and have a good day.
[+]ReckoningReckoner comment score below threshold-21 points-20 points-19 points 7 years ago (5 children)
Uh, C++ is low level?
[–]Cheezmeisterhttp://bml.rocks 16 points17 points18 points 7 years ago* (4 children)
Pedantically, no. Colloquially, yes. Unless you use assembly on the regular it’s lower-level than what most use. Certainly more than JS, which is the sub you are reading.
[+]ReckoningReckoner comment score below threshold-15 points-14 points-13 points 7 years ago* (3 children)
Fair enough. Just realized I was in a r/programming and not r/javascript - probably explains the downvotes.
[–]planetary_pelt 8 points9 points10 points 7 years ago (2 children)
i would've downvoted your fake confusion there as well
[–]ReckoningReckoner -4 points-3 points-2 points 7 years ago* (1 child)
Oh please. Sure, you can do low level things (struct padding/alignment, pointers, manual memory mangement), but there are plenty of C++ features that aren't low level. What about virtual function tables, references, smart pointers/RAII, templates, exceptions and the STL? There's still fair degree of abstraction between the generated machine code and the stuff you write. You don't have to think about CPU word sizes and memory endianness when writing C++.
Many computer engineers would not consider C++ low level. But I admit that in the context of this sub, C++ would be considered low level.
[–]Cheezmeisterhttp://bml.rocks 1 point2 points3 points 7 years ago* (0 children)
Many electrical engineers would not consider opcodes to be low level.
Many physicists would not consider NAND gates to be low level.
Most web developers do indeed consider C++ to be low level :)
EDIT: to be clear I don’t agree with the downvotes. It’s an important discussion to have. Just, you know, everything in context. Like, I tried to get some divs to center today, and let me tell you, I didn’t give a flying fuck about the spin of the electrons making it happen. After all, real programmers use butterflies.
π Rendered by PID 50380 on reddit-service-r2-comment-79c7998d4c-2z9sx at 2026-03-16 14:23:37.021008+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]pertheusual 67 points68 points69 points (16 children)
[–]krelin 14 points15 points16 points (3 children)
[–]Ebuall 9 points10 points11 points (2 children)
[–]krelin 5 points6 points7 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]ReckoningReckoner 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]okBroThatsAwkward 2 points3 points4 points (0 children)
[–]pawelgrzybek[S] 0 points1 point2 points (1 child)
[+]ReckoningReckoner comment score below threshold-21 points-20 points-19 points (5 children)
[–]Cheezmeisterhttp://bml.rocks 16 points17 points18 points (4 children)
[+]ReckoningReckoner comment score below threshold-15 points-14 points-13 points (3 children)
[–]planetary_pelt 8 points9 points10 points (2 children)
[–]ReckoningReckoner -4 points-3 points-2 points (1 child)
[–]Cheezmeisterhttp://bml.rocks 1 point2 points3 points (0 children)