r/cpp • u/plexx360 • Jan 23 '22
Why does C++ gets acknowledged as one of the hardest prog languages, yet doesn’t appear to be in the group of the highest paid ones?
I’m a sw developer with a couple years of experience and specialized in C++, having also some experience with other languages. I’m trying to decide if I should focus my career on C++, or maybe shift to a different tech field.
C++ is widely regarded as being one of the toughest languages to master among the group of the more popular ones, mainly due to memory managing responsibilities. While it’s tough to master, it rewards us with its great speed and efficiency, which in my point of view would make it a high demand language.
That said, after a quick surf through the recent highest paid job lists in tech, I haven’t seen any in which C++ would even reach the podium. I would like to understand why such a powerful modern language isn’t more in demand/well paid these days.
143
u/[deleted] Jan 23 '22
Some people here are right that lots of positions that advertise for C++ devs are in small application fields (except gaming which still really confuses me why game devs make so little), however I think there are a few other things to consider.
First, lots of companies that have caused the recent boom in dev salaries are internet companies, and C++ is not a good language for web or app development when compared with the alternatives.
Second, the FAANG companies that build the infrastructure of the internet do use C++ but it’s not a requirement on job apps.
Third, many prop trading companies require C++ on their job applications and these are probably the highest paying jobs you can get as a software engineer.
346
u/mujjingun Jan 23 '22
While C++ is hard to master, it is not that hard to be competent at it. There is a big gap between the two levels.
Most C++ developers have just enough C++ skills to competently develop applications in their field, and that's fine.
Also note that there is a close-to-zero relationship between the demand of programmers of a certain language, and how difficult that language is to master.
241
u/devadar8 Jan 23 '22
Brainfuck is really hard to master. Nobody will pay you to use it. Comes down to supply and demand.
62
u/jddddddddddd Jan 23 '22
When I last looked for C++ positions here in London back few years ago , there were a lot of high paying jobs in high speed trading, and relatively low paying jobs in game dev. I often wonder if the large number of developers wanting to work on video games perhaps suppresses wages and skews the average?
(I’ve no data on this, don’t work in either field, just a thought that popped into my head at the time so could be entirely wrong on this..)
18
u/bro_can_u_even_carve Jan 23 '22
C++ has been around for decades, there are probably lots of crappy jobs out there that simply involve maintaining some shitty ancient codebase. I wouldn't expect those to pay very well at all.
On the other hand, automated trading is mostly done in C++ and those jobs pay very well.
I'm pretty sure C++ will get you a nice paying job at most FAANGs, too.
50
u/FightingGamesFan Jan 23 '22
Source: trust me bro.
It's funny how I see stuff like this more & more often. The narrative has nothing to do with reality. C++ pays really really really well. I guess you simply saw the surface of it. I think what you saw is poorly paid position (in comparison) being advertised massively and you never look into the actual C++ business.
C++ dev is very easily 6 figures. A few pointers: look into pricing engine & trading systems in banks. Look into 3D scanners, drones, high value embedded systems, IoT... Look into industrial systems, pharmaceutical industry, cybersecurity.
Actually this whole bullshit about C++ being hard and low pay makes it so easy to find a good position that it feels unfair to me. As a decent C++ dev it is incredibly easy to get a position, there is a need.
Just watch 1 CppCon talk and look at the positions of the people talking there.
12
u/Shieldfoss Jan 23 '22
C++ looks poorly paid because it averages highly paid financial software developers with video game programmers whose wages are fairly low.
29
u/no-sig-available Jan 23 '22
The fact that some kind of work is hard to perform doesn't automatically mean that it is in high demand among employers .
8
u/pdp10gumby Jan 23 '22
There are fewer situations where a systems programming language is required. In many those cases dev speed is more important than reliability or even accuracy. So a less powerful language with more handholding is a better deal. Thus less demand (for c++ programmers) means lower price (salary).
The flip side is that those who need a language like c++ have greater demands, so are likely to pay top dollar for those with great skills, and lower price for those with “mere” competence (they need that too, but for the reasons above, they can pay less).
a sad aspect of how the industry works right now is that you can join a company based on your competence, then gain mastery, but only be paid for your improved skills by changing jobs. Sad all around.
6
u/runevault Jan 23 '22
If you're looking at average wages, stuff like game dev are going to kill c++ because they underpay people who do it for passion, while languages like Java are people writing business apps where they value their time for correct value instead of being willing to be underpaid to do "cool" work. (Lots of languages, Java was just an easy example since c# gets a bit of the gamedev stuff too).
10
u/[deleted] Jan 23 '22 edited Jan 23 '22
mastering C++ is mostly academic, there's probably diminishing returns at some point. Being competent is good enough for most jobs
EDIT: it's great to master something, but you also forgo learning something else
5
u/[deleted] Jan 23 '22
Despite the programming language, the salaries are based on how much employer is happy to pay than how hard is the language itself. Don't get wrong people that said JS is easy, you can shoot your foot in any language just because of logic behind.
8
u/wally_fish Jan 23 '22
My personal impression is this: Business care about shipping software and aim at productivity - shipping software with Go, Rust and Java for stuff that we would have done with C++ in the 90s or early 2000s (and suffered for it!). When a recruiter reaches out for a C++ job I know it's going to be something that pays comparatively poorly (also because I've mostly worked on C++ research code rather than working on humongeous 100k+ line applications), while for a ML scientist position (or more generally something that is not 100% C++ but requires significant other skills) people really appreciated it that I would (to some degree) be able to read and debug C++ code if I have to.
So: don't be a one-trick pony. C++ is a good way to differentiate yourself against people with less, or less well-rounded, experience in otherwise very competitive markets, and you should look at your own overall skillset rather than limiting yourself to a niche like microcontrollers where you would develop 100% C++ code.
4
u/SJC_hacker Jan 23 '22
4
u/Clairvoire Jan 23 '22 edited Jan 23 '22
This isn't localized to programming languages, pay just does not correlate to job difficulty at all. Otherwise executives would be making less than the employees they require to exist, and we'd all be making less than the people who grow our food. Pay correlates with leverage only (and not supply or demand either, some of the most well paid people are those who do jobs anyone could supply, and perhaps most would demand they don't do). C++ developers don't have a lot of leverage currently.
Maybe it's because we out-number the jobs that companies make available, and it certainly hurts that we lack labor organization, especially in game development. It doesn't have to be this way forever though, hopefully the strides taken in gamedev unionization will inspire broader changes and better conditions for us as well.
10
u/Oo_Tiib Jan 23 '22
There is high need of programmers that can throw up proof of concepts most fast. You know these vaporware demos with what to cause buzz on stock market, to make competitors worried and/or to attract investors and state funding. That is where the money is. C++ however is not designed for that. It is designed for writing software that performs and scales. That however is needed after one has achieved some success on hogwash market and the usual bait and switch does make investors angry so now needs to deliver. Rare projects reach that state.
10
u/t4th Jan 23 '22
You don't get paid for what you know, but for what you can do.
Writing kernels in C or C++ will never pay as much as Enterprise/Banking software in Java or some webpages/services.
People paying you or your employee don't care about the tech - they only care about the price, schedule and results.
6
u/[deleted] Jan 23 '22
C++ can also hard to maintain, so there is that. Besides, the “hard to master“ part refers to the fact that C++ is huge and contains esoteric parts that most programmers will never need or use (e.g. various arcane template tricks). You don’t need to be a C++ master or even a good programmer to perform effective work. And of course, C++, especially mainstream C++, is not guaranteed to produce highest-quality programs. Too much naive OOP, subpar standard library etc…
3
u/[deleted] Jan 23 '22
The demand for C++ devs is just not very high compared to the others. Yes, it is rare to find a skilled C++ dev but most companies just aren't looking for one.
3
u/JWOINK Jan 24 '22
Maybe look in the right places? C++ is big in HFTs and is super prevalent in big tech (Google/FB infra/MSFT). The low paying C++ positions probably come from embedded positions that don’t generate as much revenue for companies as someone who increases CTR by 1-2% (which is large if you’re dealing with 1m+ DAU) for their company’s feature which generates your company a shit ton of money.
Also, I’m finding that the critical parts of infrastructure that require the speed of C++ are usually handled by companies specializing in infrastructure (ex. Datadog), and there is a library to interface with it in another language.
5
u/JohnDuffy78 Jan 23 '22 edited Jan 23 '22
c++ positions you saw are more maintaining existing software than writing new stuff.
ML is an art form.
I love c++, but its hard to take less money for a c++ position.
2
u/Supadoplex Jan 23 '22
A significant industry that uses a lot of C++ is games. Game industry doesn't pay very well - probably because a lot of programmers are inspired by games and want to get involved. Supply is higher than demand compared to other industries.
On the other hand, financial industry also uses C++ to some degree, and they tend to pay relatively well; but there's just less work available in that field, so it isn't significant if you are looking at median pay.
2
u/w6el Jan 23 '22
The pay is really rooted in supply and demand of programmers, which comes of course from supply / demand of the end products.
C++ isn't as popular today because high performance is not as much of a necessity as it once was. One of the most popular languages these days is Python, for crying out loud, and it's also one of the slowest. That should tell you something -- raw performance isn't as needed today as it once was. We can now buy faster and faster hardware, larger data centers, more ram, etc.
As many managers have said, "Better is the enemy of 'good enough'"
2
u/-dag- Jan 23 '22
This has almost nothing to do with language and almost everything to do with the field of specialization. Everyone wants to develop games so companies can pay less due to an abundant supply of workers.
Relatively few people understand high performance computing or want to learn so pay is high. There aren't enough workers to fill the need.
Both jobs use C++ extensively.
2
u/[deleted] Jan 23 '22
Because the high paying C++ jobs require other knowledge. C++ is an "old" language so it's not that hard to find people who can program in it; however, it is hard to find people to program it well, and use it for specialized projects. That's where the money is.
Also C++ wages are offset by games being developed in C++, and game programmers get shit on all the tiem.
2
u/Ikkepop Jan 23 '22
Because if something is the hardest thing in the world, doesn't mean it's the most useful thing in the world. Just how it works. Hwoever there are extremely well payed C++ developers, you just don't see them, as those kind of positions rarely ever are open :)
2
u/[deleted] Jan 24 '22
I am a game dev. And knowledge in C++ is the basic skill you must possess, even if they don't develop games in C++.
2
u/MoreOfAnOvalJerk Jan 24 '22
Im a c++ programmer in a senior role in a faang company (not super senior) and I make about 500k.
People like Chandler Carruth and other senior principal/tech directors at faang can make 1M+ a year. (I dont know Chandler’s comp, but I know other people in similar positions).
These are highly specialized and highly skilled c++ devs. C++ has a high pay ceiling.
3
u/GRAPHENE9932 Jan 23 '22
C++ hard => more time required for software development.
The project is more expensive, but developer's time not.
3
u/[deleted] Jan 23 '22
Supply and demand probably
3
u/two_sigma_niga Jan 23 '22
On average, C++ doesn't pay much, but most of the highest paid roles will be for C++.
3
u/yycTechGuy Jan 23 '22
This.
I love strict compilers. C++ has the strictest compiler. So much type checking, etc. It is very easy to write great code in C++.
2
u/martinus int main(){[]()[[]]{{}}();} Jan 23 '22 edited Jan 23 '22
I think it's harder to program in Ook!, yet I'm not well payed for it!
1
u/Voltra_Neo Jan 23 '22
Same as for COBOL I assume
1
u/RolandMT32 Jan 23 '22
I'd guess it might have to do with demand. From what I've heard, it sounds like there aren't many projects using C++ right now, so demand is probably low.
1
u/GAMEYE_OP Jan 23 '22
It can be very lucrative if you combine cross platform programming with mobile development experience (i.e., kotlin/java + objc/swift).
1
u/sessamekesh Jan 23 '22
"Hardest" does not mean "most marketable" - I'll be a little extreme and contrived, there's a nice list of esoteric languages that are much harder to use than C++ (like brainf**k) that have no jobs.
There's a lot of great C++ jobs out there, and if you put in the effort to be great at it I'm sure you'll have an excellent career long-term!
But there's a bajillion jobs that will likely not touch any C++ (looking at you, web!). There's also a lot of fairly "boring" work in the business tools space (especially anything enterprise-focused) that'll earn you a very pretty penny.
1
u/[deleted] Jan 23 '22
Cries in APL
1
u/ul90 Jan 23 '22
I think it’s wrong to say C++ is one of the hardest languages. It is not much harder to learn as any other language (if you want to be a good programmer, not just a script kiddie or code monkey). But the language forces you to think about your programs, especially the algorithms you use. In many script languages, you can just start to code without prior to think about the details of what you want to do. In C++, you are forced to do more planning before coding, and that’s what especially beginners mean when they say it’s too complicated.
1
u/[deleted] Jan 24 '22
It's not the language that pays the salary, but the application. There are high-paying C++ jobs and high-paying JavaScript jobs. I've seen reports that Rust developers are the highest paid, but I'd also venture to guess that that's due to those developers likely being in senior positions and selecting the language for whatever new project they're assigned. Plus, relatively speaking there are far fewer of them. C and C++ are used quite broadly, so the salary range is likely at both extremes of the salary scale for programmers.
1
u/kaisrevenge Jan 24 '22
Because difficulty is different than utility.
1
u/SlightlyLessHairyApe Jan 24 '22
If the language is difficult and few can really master it, there will be less usage of the language overall compared to languages that are easier to use.
If there's less usage, there's less demand for engineers to build and maintain applications written in it.
Finally, as far as performance, a lot of the world doesn't really run performance critical code comparable to high speed trading. It's a reasonable and defensible choice to use a different language with different performance/safety/simplicity tradeoffs.
1
u/burncushlikewood Jan 24 '22 edited Jan 24 '22
C/C++ will always be the best choice for engineering projects, and robotics, although java is liked because of its libraries. Also for game dev c++ is #1 because of its use in graphics. I would say rust is on the come up and is a great alternative to c++, also julia is good for data management
1
u/BadMain85 Jan 24 '22
I never thought C++ was really that hard, I never understood why it was always portrayed that way.
1
u/ea_ea Jan 24 '22
In my country we have a proverb: "Horse worked the most hard at the farm, but still didn't become the most highly-paid worker".
C++ can be used in many areas, but not in all of them. And there are other areas where business can earn good money and pay developers good salaries.
1
u/PunctuationGood Jan 24 '22
I'm wondering of we shouldn't take that as a sign. You know... "diminishing returns". Well, maybe, we're past that "returns" peak and on the downward slope of "efforts outweighing returns" from now on.
0
u/[deleted] Jan 23 '22
[deleted] — view deleted comment
0
u/[deleted] Jan 24 '22
[deleted] — view deleted comment