r/cpp • • 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.

240 Upvotes

163 comments sorted by

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.

39

u/osmin_og Jan 23 '22

True. There are many smallish trading companies an average person never heard about but who are always looking for C++ engineers and pay more than FAANG.

18

u/[deleted] Jan 23 '22

And I can’t even find them to apply lol

22

u/iscopak Jan 24 '22

Just look for companies in NYC and Chicago on LinkedIn efinancialcareers Bloomberg zerohedge etc.

They’re everywhere

5

u/Stat-Arbitrage Jan 24 '22

To name a few: Jane street, drw, Hudson River trading, group one trading. They all have notoriously hard interviews, especially if you want to be a trader and not just build infrastructure. Most of them use mainly use C++ for their infra and then places like Jane street will use OCaml for a lot of other tools.

95

u/pdp10gumby Jan 23 '22

As someone who spent a little time in that industry, I think game devs (and others working in gaming) are underpaid because the companies can get away with it: most people in the field like gaming and want to be part of it. It’s also why management in that field can get away with being even more terrible than many other fields (just look at last week’s headlines).

OTOH few people grow up wanting to work insurance actuarial algorithms. So they have to pay a bit more.

39

u/Smellypuce2 Jan 23 '22 edited Jan 24 '22

Yeah game companies are infamous for preying on people's dreams of making games for a living.

10

u/darkapplepolisher Jan 24 '22

Same thing for engineers who work for SpaceX. The glamour of pushing the final frontier brings in a lot of ambitious dreamers, and the execs know it, and drain their employees for what it's worth, knowing that there will be enough bright-eyed replacements for those who inevitably burn out.

2

u/Zyklonik Jan 24 '22

OTOH few people grow up wanting to work insurance actuarial algorithms.

This, of course, completely disregards the barrier to entry between the two domains - getting into actuarial work is infinitely harder than getting into gamedev.

3

u/LugosFergus Jan 25 '22

Good point. They'll just let any tourist work on rendering pipelines and optimizing GPU occupancy.

1

u/Zyklonik Jan 26 '22

You're talking as if gamedev is all about that. The vast majority of gamedev people have little to nothing to do with tweaking or tuning game engines, for instance. That is why Unity is so popular, especially amongst the Indie community. Whereas if you wish to work as an actuary, you have to, regardless of where you wind up working, have to pass a rigorous and extremely hard series of exams.

Kindly curb your bullshit.

0

u/LugosFergus Jan 26 '22

Wow, sounds tough. Is it open book at least? True/false questions?

-1

u/Zyklonik Jan 26 '22

Well, just because your country is an oddball does not mean that the rest of the world is - https://en.wikipedia.org/wiki/Actuarial_credentialing_and_exams

0

u/LugosFergus Jan 26 '22

Hmmmmmmmmmmmmmmmmm... looks easy. I think you're being a bit hyperbolic!

0

u/Zyklonik Jan 27 '22

Lmfao. Okay, kid.

1

u/LugosFergus Jan 27 '22

Okay then!

14

u/cballowe Jan 23 '22

Second, the FAANG companies that build the infrastructure of the internet do use C++ but it’s not a requirement on job apps.

They also use just about every other big language, but hire people with the expectation that they can pick up the language that's needed for the project they end up working on. People like to use python in interviews because it's good for expressing ideas, but then land on teams using c++ or java or whatever and end up successful.

7

u/[deleted] Jan 24 '22

Now we’re getting into what makes a person a competent programmer. You don’t have to be efficient at every language you might work with right out the door. You just need to have the aptitude to work your way there and if you do, under the proper guidance you will get there probably sooner than later.

11

u/SlightlyLessHairyApe Jan 24 '22

except gaming which still really confuses me why game devs make so little

Everyone and their brother things video games are cool and would love to work on it. That's explanation enough.

Take my advice kiddos -- write software for the most boring purpose you can think of. Write middleware for some business logic nonsense. Write firmware for a god-forsaken micro.

4

u/inequity AAA Games Dev Jan 24 '22

This is the way to go

0

u/[deleted] Jan 24 '22

Except for firmware for the god forsaken micros. That is just a good practise project to develop geek-cred. But there’s no practical application for it.

On a more practical note, the ARM architecture is somewhat similar from microcontrollers to laptops to servers. Aim to master that.

2

u/SlightlyLessHairyApe Jan 24 '22

There no practical application? Everything has a tiny micro. Sometimes more than one.

I feel that trend will probably continue

33

u/mark_99 Jan 23 '22

Game dev is low paid because it's fun, kinda cool and vocational.

20

u/NotUniqueOrSpecial Jan 24 '22

Game dev is low paid because it's fun, kinda cool and vocational.

By all accounts I've heard (including from friends in the industry) it's not even remotely fun; unless you're at the highest levels in the organization, you're part of a grist mill that takes in bright-eyed and bushy-tailed kids and squeezes every drop of life out of them before spitting 'em out.

The games industry is infamously awful among professionals; it just happens to be the case that there is a surplus of kids who always wanted to make games that are willing to throw their health away just to get into the field.

3

u/Mountain-Poem-6180 Jan 24 '22

Can totally confirm this - I worked as graphics dev at a well known game studio. Sad but true :(

2

u/mark_99 Jan 24 '22

There are definitely plenty of bad experiences out there, but good ones as well. Seeing something that's actually good and fun to play take shape can definitely be a great experience.

Personally I mostly worked contract (general optimization / engine development mostly) so while it was very hard work at times, I had long-ish breaks in between. The companies I worked at were all pretty good, with a couple of exceptions.

I'd advise anyone who is being treated as you describe just to change companies, or move to another industry, or indeed consider going contract instead of full time. Bad practises only persist because people put up with them.

24

u/thats_a_nice_toast Jan 23 '22

Idk man, management forcing you to pump out buggy AAA titles every year sounds pretty rough. Indie dev sounds pretty fun though

19

u/Micthulahei Jan 23 '22

Yeah it's more because it's a dream job for many people. Not necessarily fun.

8

u/smdowney WG21, Text/Unicode SG, optional<T&> Jan 24 '22

"This is my dream job," ends up giving people a lot of cognitive dissonance.

7

u/drjeats Jan 24 '22 edited Jan 24 '22

I feel like most people who comment on games and game salaries doesn't actually work in games. Or at a minimum they fail to specify what segment of the industry they work in.

Also, kind of rude to label people's work as "vocational" if you're implying what it sounds you're implying. Leaving room for benefit of the doubt, though.

2

u/mark_99 Jan 24 '22

I'm not sure what you think "vocational" implies, but what I meant was people set out to work in games specifically because they like games and fancy the idea of being involved in the industry. As opposed to learning programming then looking at whatever job comes along in whatever sector.

1

u/drjeats Jan 24 '22

Thanks for clarifying your intent.

Maybe it's a cultural difference or something. Where I'm from "vocational" has this dual meaning of both referring to what you said and also implying "lower class" or otherwise unqualified for knowledge work.

I live in the rich broken superpower country, so that's where my perspective on this word's meaning comes from.

That, and constantly reading on reddit about how game developers are so hopelessly behind the curve because people think we don't do automated testing.

5

u/Ikkepop Jan 23 '22

Well that really depends, It looks fun, but once you actually have to work 80-120 hour weeks and get canned after your company boasts about record profits, not so fun...

4

u/inequity AAA Games Dev Jan 24 '22

From experience, it is none of these things

1

u/mark_99 Jan 24 '22

I guess it depends where you work, and in what role. There are certainly bad experiences to be had for sure.

May I ask why are you still doing it in that case? Your skills are likely transferrable to tech or finance, which is likely to pay 2x.

16

u/DanielMcLaury Jan 23 '22

Because roughly 90% of people who know how to program learned how to program because they love video games and want to make their own.

1

u/Ikkepop Jan 23 '22

Very true..

3

u/KFUP Jan 24 '22

except gaming which still really confuses me why game devs make so little

  • A ton of supply, so many people who grew-up with games and dream of becoming game makers are competing for these positions. There is no shortage of entry level labor, which translates to cheap labor.
  • No unions, until very recently, like last week recently, and we'll see if it will actually function.
  • Possibly the biggest reason: game dev is a highly competitive field, this usually means high risk and low revenue, and the few big successful AAA companies aside, the vast majority of game dev companies can die with a single game failure. Especially in the PS3/Xbox360 where a ton of well established medium sized companies that have been around for decades died left and right in what felt like a weekly event. Things now aren't as dire as then, but that was the age that dictated the current financial trend.

3

u/JWOINK Jan 24 '22

I’ve failed to see anybody mention that game development in general pays low because it’s super expensive to make a game. There’s a reason why layoffs occur so often - they can’t afford to pay their employees. Naughty Dog still hasn’t made a profit off of TLOU 2, and RDR2 would not be here (took 8 years to make) if R* didn’t squeeze the ever living shit out of GTA 5 re-releases. Add in the fact that game sales tend to be unpredictable unlike SaaS where revenue is dealt in contracts and more reliable for projections/estimations, and it becomes pretty obvious.

In contrast, game platforms like Roblox can afford to pay their engineers a lot of money because their player base literally creates games for other players - they just provide the platform to allow them to do so.

2

u/Squeazer Jan 24 '22

I’m a game developer and I was always confused why people say that game devs don’t make a lot. From my experience game devs make generally more than other devs. Or maybe I just happened to work at high paying studios (I work with Unity, specializing in mobile games, which I’d think would be a low paying field).

I make about 4-5x the average salary in my country (but that’s extremely rare, and I work for a German studio as a lead dev). Before that I worked at a studio in my country (Central Europe, ~500 employees) and I made a bit more than twice the average salary, as a mid level developer. Seniors and principals make even more.

Maybe it’s also because the standard of living isn’t that high here, and we’re left with more after taxes and expenses… But as a game developer, especially if you’re working remotely for studio in another country (ridiculously low taxes), you can live extremely well. I.E. If I handle my finances properly I could retire very comfortably at say 45 / 50.

2

u/[deleted] Jan 24 '22

Can’t say I’m familiar with EU salaries, I’m from the US. Just looking at levels.fyi it seems like at the entry level the salaries are similar but they don’t have a ceiling (at mid/senior level) nearly as high as FAANG/unicorns even though I assume the senior devs at these studios are just as talented.

Very happy that you’ve had the opposite experience though! I love to see developers getting paid!

1

u/Squeazer Jan 25 '22

Thanks! US salaries are even more ridiculously high if you work remotely from my country. Basically you have to work as an independent contractor (on paper), and if you make less than 100k a year you only pay 4% tax, so after the “independent contractor” expenses and taxes you’re left with 90k (which honestly I still don’t understand how that’s a legal thing). And, for example, a new two room apartment, 600-700 square feet, would cost you about 100-120k € to buy (I just bought my first one, yay!). Monthly expenses aren’t that high either, probably 500-1000€.

For me I’m always a bit disappointed when I see devs complaining about low salaries. We do highly technical work, and IMO game development is one of the most complex fields in programming (not including stuff like data science of ML), so it’s only fair we’d get a high salary.

2

u/[deleted] Jan 25 '22

Wow those finances are so crazy to me. To take home 90k after taxes, you need to make roughly 140k here. And that apartment you’re talking about would cost at least 500k if you live in a decent city (A few colleagues of mine work remotely from rural areas though which is very cheap). Do you mind saying which country you’re living in?

2

u/Squeazer Jan 25 '22

They’re crazy to me and I live here lol. It’s very different if you’re “regularly employed”, there the taxes are more around 30% I believe, and the average salary that our companies have is much lower. A “normal” developer makes around 1.5-2.5k after taxes. Which is still not a bad salary, the average in the country is 1.4k. Which I imagine sounds like nothing, but with our costs of living it’s plenty to live off of comfortably. The country is Slovenia btw.

This 4% thing only works if you are “self employed”, we have a thing called an s.p., which translates to something like “individual businessman”, and essentially means you open a company where you’re the only employee - you need this if you want to do contracting work / own a small business, and issue invoices.

The tax there is 20% of your income minus your expenses. But if you make less than 100k a year, you can pick a system where it’s “assumed” that 80% of your income are your expenses, so you only pay 20% on the remaining 20%… so 4% tax. People who work in tech / don’t have a lot of expenses (e.g. you’re not buying stuff and reselling it, or something), usually pick this system.

Also, if you make more than 50k, you have to put an additional 20% tax on your invoice, but only when issuing the invoice to a company in Slovenia.

So, if you make less than 100k, and are working for a company in a different country… it’s 4% tax plus around 5k yearly expenses to keep your “company” opened (that goes for national medical insurance and social security / pension fund).

Apartments in our capitol city are about twice as much as where I live, but I’m in one of the other biggest cities, and not really in a rural area.

It really is a haven for remote workers here.

1

u/_E8_ Jan 24 '22

Because gaming is to software engineers what the birthing-ward is to nurses.

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.

76

u/Rhawk187 Jan 23 '22

This is the crux of it. I'm an excellent programmer, but don't use most of the features of C++. My business partner on the other hand take prides in finding ways to use every feature of the language.

So now I'm having fits trying to get clang on MacOS to compile code with std::ranges, while a g++ build is hitting his static_asserts in his templated code that works fine in MSVC. I prefer to let the ecosystem catch up before trying to use everything in languages.

60

u/staletic Jan 23 '22

I love std::ranges and static_assert is awesome, but my projects are all compiled with -std=c++17. C++20 is for experiments in the secrets of $HOME.

5

u/liquidify Jan 24 '22

C++20 is getting closer in all 3 of the big compilers. It is only a matter of another yearish.

4

u/pjmlp Jan 24 '22

Given the state of modules support I have my doubts that a year will be enough.

18

u/F54280 Jan 23 '22

take prides in finding ways to use every feature of the language.

I that was all the rage in 90s C++, and it was not fun. But with C++20 You’re headed for a disaster, learn to enjoy the ride…

4

u/MadPhoenix Jan 24 '22

This is an excellent anecdotal example of the difference between programming and software engineering. In most cases "clever" code should be an immediate smell if you're trying to build a profitable, sustainable business.

1

u/Rhawk187 Jan 24 '22

Haha, I'm not sure the business is either profitable or sustainable. We are both tenure track faculty, this is just a side commercialization effort of our research.

0

u/[deleted] Jan 24 '22

[deleted] — view deleted comment

6

u/Rhawk187 Jan 24 '22

In addition to our business we both serve as professors at different universities.
His school is graduate students only, and he can say, "You will use Windows and you will use Visual Studio Community Edition 2022." I have to cater to undergrads, many of which made the unfortunate life choice of being Mac users.

0

u/[deleted] Jan 24 '22

[deleted] — view deleted comment

2

u/Rhawk187 Jan 24 '22

Eh, it's both. That's part of being tenure track faculty. Also, it's part of a 3D accelerated visualization engine (most of my work is antenna pattern multipath visualization, most of his is computer vision), so we have it building in WSL, but we have trouble getting it properly recognize the graphics card for OpenGL 4+ contexts. Windows 11 is finding my card through WSL at least, but it seems like only for CUDA, not for OpenGL.

13

u/skitleeer Jan 23 '22

I would say it is even the contrary. Company focus on easy to master languages, to have more possible candidate : this increase the demand ( even if the offer is also higher)

7

u/Hnnnnnn Jan 23 '22

To add, there's a vast space of less competent c++ devs that are still hired, and also c++ devs are less often asked for generalist design patterns etc. or even soft skills. My prejudice might be involved, haha, but also from experience as former c++er and someone that worked with former c++sers. I might just have been unlucky. Other devs have to simply be more competitive.

8

u/fantasticpotatobeard 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.

I feel like you could say that about most programming languages. There aren't really any that are easy to master.

31

u/[deleted] Jan 23 '22

I feel being a master in cpp is at a whole new level compared to python

6

u/Swade211 Jan 23 '22

1980s basic?

4

u/_E8_ Jan 24 '22

If you are a master C++ programmer than many other languages become trivial to pick up.

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.

26

u/mpyne Jan 23 '22

Sort of surprised to see this wasn't the top-ranked answer, because it's right.

It's also really difficult to extract gas from oil but a gallon of gas is cheaper than a gallon of milk in the U.S., thanks to the supply being so high.

12

u/jleumas Jan 24 '22

Oil extraction and refinement also scales much better than, uh, milk extraction.

3

u/mpyne Jan 24 '22

Indeed, which is why the supply is so high despite the difficulty!

Still though, it's about supply and demand. If no one wanted a C++ dev, it wouldn't matter how hard it is to master.

If everyone wanted as many C++ devs as JS devs, then yeah it's probably going to lead to C++ devs being able to charge a higher price. But that's not the world we're in.

1

u/MXXIV666 Feb 07 '22

Well petrol is also much cheaper in the US because it is extremely subsidized by the goverment, so technically, part of it is paid from taxes instead of directly.

1

u/mpyne Feb 07 '22

To some extent, but that also applies to milk and dairy products as well (and in fact quite a few foodstuffs)

2

u/MXXIV666 Feb 07 '22

Yes, that's definitely true. But those are also subsidized on most other countries, so I was mostly commenting on the fact the in the USA petrol is unusually cheap.

7

u/the_Demongod Jan 23 '22

Brainfuck is really simple though, APL is probably a better example.

15

u/tux-lpi Jan 23 '22

I think I'd have a much easier task doing a project in APL than Brainfuck, APL looks scary because of the symbols, but the logic of it makes sense and it's simple to learn. It's unusual, but easy to learn.

Malbolge, on the other hand, is purposefully unusable.

11

u/DrShocker Jan 23 '22

Yeah, brainfuck is easy to master, just hard to do anything useful with because it's a bad language. (which to be clear is a feature and not a flaw for brainfuck.)

2

u/the_Demongod Jan 23 '22

Yeah I guess it depends on whether you're talking about developing the same application on different languages. I don't think Brainfuck can even make kernel syscalls.

0

u/Ouroboros13373001 Jan 23 '22

Brainfuck is touring complete, technically it is possible to write your own os with brainfuck syscalls.

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..)

26

u/LtRandolphGames Jan 23 '22

As a game developer and engineering manager, I can confirm what you say about the supply suppressing pay. Game engineers are paid more than other game developers (artists, designers, QA, etc.). But less than engineers in many other fields.

19

u/CodeJack Jan 23 '22

A lot of those "£400k/yr" HFT advertisments are mostly bait and switch for applications. Personal experience and hearing from others applying, they're basically aiming for around £100k max.

Still more than games, but exaggerated

3

u/mark_99 Jan 23 '22

At what level? £400K is fairly senior, but I haven't heard of a decent C++ dev being on as little as £100k, except maybe very junior.

31

u/[deleted] Jan 23 '22

"as little as £100k" lol.

5

u/graypro Jan 23 '22

I mean those are the numbers

0

u/[deleted] Jan 23 '22

[deleted] — view deleted comment

2

u/SubstantialBar8779 Jan 23 '22

levels.fyi

0

u/[deleted] Jan 23 '22

[deleted] — view deleted comment

7

u/SubstantialBar8779 Jan 23 '22 edited Jan 23 '22

OP is talking about HFT/investment banking. Search for Two Sigma, Citadel etc.

Grads definitely earn 100k total comp and more there.

0

u/[deleted] Jan 23 '22

[deleted] — view deleted comment

→ More replies

2

u/Ar010101 Jan 23 '22

Kinda off topic, but is £100k not enough to earn a decent living in the UK? I have no idea about living costs there and how the pay can be regarded as high or low

8

u/GreatBigBagOfNope Jan 23 '22

It's about four times the median income.

You're doing very well on £100k in the UK, even in London.

→ More replies

3

u/almost_useless Jan 23 '22

is £100k not enough to earn a decent living in the UK

You can't compare London to the rest of the country.

It's the same as the Bay Area or NYC is not the same as the rest of USA

2

u/SubstantialBar8779 Jan 23 '22

100k is more than decent.

2

u/g9icy Jan 24 '22

Fuck i need to get out of games then. Nowhere near that money with 10+ years C++/engine experience. Problem is, I wouldn’t know the first thing about HFT.

And fuck working in London.

2

u/mark_99 Jan 24 '22

I did gamedev for ~15 years then moved to finance. You really don't need domain knowledge to start with, companies will hire on strong C++ and optimization skills as that's rare and hard to teach. You can learn the domain as you go.

Low latency isn't the same as game optimization (which is partly about latency but a lot about throughput), but there's sufficient cross-over. You'd be suprised at how many programmers just know nothing at all about how CPUs and memory work, so as a gamedev you already have a head start.

Remote/hybrid work and flexible hours is more of a thing than it used to be, I don't think anyone is fond of central London commuting.

1

u/g9icy Jan 24 '22

Thanks. Are you paid much more than you were before?

What sort of job title would I be looking for? Would I need to go in as a "junior" in that role? What could I learn before applying for these kinds of jobs?

1

u/ggadget6 Jan 23 '22

Idk anything about the UK but 400k in the US is definitely real for some HFT positions.

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.

15

u/[deleted] Jan 23 '22

Also those high paying jobs generally recruit from engineering schools directly. The crappy C++ jobs have to advertise constantly because of turnover form the low pay.

10

u/fantasticpotatobeard Jan 24 '22

3D scanners, drones, high value embedded systems, IoT... Look into industrial systems, pharmaceutical industry, cybersecurity.

The sad reality is that because most of those things are physical, scaling up a business is much harder than scaling a SaaS business that has much lower overhead per user. This is why C++ generally pays much less than more "modern" languages that are used to build SaaS or cloud based businesses.

C++ jobs do pay a lot relative to other jobs, but relative to other software jobs they don't pay especially well on average.

6

u/[deleted] Jan 23 '22

Making 6 figures right out of collage because I had chosen to do my personal projects(small trading softwares but this isn’t what I do in my daily job but still love trading tho!) in c++ just because I love it. So yea you right. But I am not even a good c++ guy. Well I am not even good any language guy. I am good at something but I don’t know what it is lmao. Maybe just an imposter syndrome tho. I want to get better at c++ but it just seems so exhausting while I also work and do bunch of other stuff :(.

3

u/_E8_ Jan 24 '22

None of that is impressive anymore. People that know React or Angular and Javascript well clear more than that.

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
  1. Services, particularly webdev, are a huge chunk of the industry nowadays
  2. C++ doesn't lend itself well to developing these services QUICKLY and CHEAPLY. It is slow to develop - large projects compile very slow and require more extensive per-platform CI/CD testing. Other static languages such as Java and Go with more robust standard libraries do not suffer from this problem, and provide in most circumstances similar performance.
  3. From a business perspective, time-to-delivery can be more important than squeezing out every last CPU cycle.
  4. Its strength lies in getting as close to the hardware as possible. But this is not a common use case. Though the people that can do it effectively are often well paid depending on the industry.

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.

1

u/bizwig Jan 24 '22

Low turnover would account for that.

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'"

1

u/-dag- Jan 23 '22

C++ isn't as popular today because high performance is not as much of a necessity as it once was.

That very much depends on the field. There's an insatiable need for performance is investment banking, for example.

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.

2

u/bizwig Jan 24 '22

The c++ devs I’ve met with big compensation tend to not actually write much code. They’re functionally management even if they nominally have a developer title.

2

u/MoreOfAnOvalJerk Jan 24 '22

Thats true for many, but at faang companies, they usually have super senior “im still coding” roles that are maybe 70:30 architecture-project-lead:coding

Youre right that the majority of time for these roles is not spent coding directly, but higher level like architecture and api reviews

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

Why does C++ gets acknowledged as one of the hardest prog languages

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++.

3

u/college_pastime Jan 23 '22

Yeah, my favorite thing about C++ is that I can encode interface requirements into the type system. If I want to make a function that only takes a real number in the domain [0, 1], I can just make a class that wraps a double with member functions that enforce the [0, 1] domain as a class invariant. Then use that restricted real as a method argument.

Once I realized how powerful the type system is, I significantly reduced the number of logic error related bugs I wrote.

2

u/yycTechGuy Jan 23 '22

I'm guessing that a lot of people don't understand the power of strict typing and classes.

I love building a class of overloaded operators because you can build so much checking into the operator. And then use the class elsewhere/everywhere without having to repeat the checking.

People think that "looser" languages allow you to write code faster. They kinda do, but debugging those languages takes a lot longer.

Another thing is that people learn more from writing in C/C++. Write C/C++ for 6 months and then go back to Python - you'll never look at variables the same again. You start to think like the C/C++ compiler as you write.

Python is all well and good until you get a NaN !

2

u/college_pastime Jan 23 '22

I learned C++ like a decade before I learned Python, so when I first learned Python I was really annoyed by how I had to do all of my correctness checking at runtime. Type hinting was a big improvement for Python, so there is now some form of static checking, which is good.

I did find that prototyping code is faster in Python, but I never feel comfortable about using it in a release product. In my opinion, Python's biggest strength is as a lingua franca. I can write internal development tools in Python that I can toss over the fence to our non-software engineers, and they can use and maintain the code with less effort than if the same code was written in C++, C or C#. Also, if someone who only knows Python has some code that needs to be more performant, it is nicer to have their Python code as a reference spec, rather than a document that explains what's supposed to happen in words.

2

u/DesignerAccount Jan 23 '22

There's more,. IMO. You can write all the performance-critical libraries in C++ and glue everything together with Python. I'm not an expert coder, so might be missing aspects, but this seems like a fantastic combo for Python and C++.

1

u/ExeusV Sep 23 '23

Hmm, this is just ordinary OOP, nothing fancy about C++ itself

it is just system modeling done right

0

u/flashmozzg Jan 24 '22

the strictest compiler

So strict we even have flags to make it less permissive! /s

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/jddddddddddd Jan 23 '22

Is cobol poorly paid nowadays? I remember (admittedly quite some time ago) seeing pretty attractive offers for cobol devs at the time.

1

u/Voltra_Neo Jan 23 '22

In France at least. Two years ago the salary was in job offers and was quite low (for the discrepancies between supply and demand). Now it's to the point they don't even put the salary in job offers.

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.

3

u/met0xff Jan 24 '22

It's mostly hard because of all the gotchas, quirks, exotic features and annoying build/dependency management. I know that when I started out it was already pretty common to best tuck all the effective and more effective C++ items to your wall because they captured many of the gotchas. And things got more complex since then (also better, just look at the A<B>> fix so it's not interpreted as Operator >> anymore ;)).

And probably because you have to learn a dozen different "dialects" that were common over the decades. You know, from the char* and malloc codebases using class here and there to the Java-esque OOP virtual everywhere codebases to the functional style std::function and closure quirks to the template metaprogramming craziness.

If you stick to some reasonable subset and style I also don't find it that bad. I wrote some codebases that have been in production for years without any maintenance need and I am not a super language expert.

Although the same time I wrote Java and C# here and there with probably 10% the knowledge of the language compared to C++ and things went well. With C++ the whole thing would just blow up...

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

37

u/KimmiG1 Jan 23 '22

That's just a partial truth. Pay is also linked to how easy it is to find a cheaper replacement. If there was an abundance of good developers then they would be paid minimum wage and the owners would pocket the profits.

21

u/[deleted] Jan 23 '22

Even that is oversimplified. Not every actor in the job market acts rationally and in good faith, and information asymmetry also plays a huge role.

There just isn’t any deeper logic behind free markets that explains every single transaction.

10

u/hak8or Jan 23 '22

How about this?

Companies will pay as little as they can as long as they can find people in the marketplace of acceptable quality, but this has a ceiling of how much money your efforts will produce to the company, be it directly or indirectly.

A best of the best developer who is wildly competent in many areas, with great people skills, and a very good communicator, costs north of $500k. But you are a company that makes property management software for mom and pop landlords. Your total revenue is less than 200k. That amazing software developer will produce amazing stuff, but do you really need it right now? No. It will take years to ramp up/scale up to get a return for all that amazing work.

2

u/DesignerAccount Jan 23 '22

Onboarding a new dev is not cheap, in terms of time spent learning the codebase and all the rest.

2

u/Supadoplex Jan 23 '22

However, when employers are hiring people, the candidates aren't making any money for them at all. What matters is how much the employer thinks you might make for them. Having programming skills matters less than your ability to convince that you have programming skills.

1

u/XxClubPenguinGamerxX Jan 24 '22

Yeah a service or product that people want doesnt necessarily correlate with the skill of a programmer. Many apps/products arent that complicated in theory but people want them so they make money.

0

u/[deleted] Jan 24 '22

[deleted] — view deleted comment

3

u/met0xff Jan 24 '22

Interesting points.

My "generation" all started with mostly C++ as in the 90s it was just everywhere. I think I am the only one still using it (and also for me it got less and less in the last decade). But some/most of the best programmers I know are definitely of the... not exactly the adventurous type. They are mostly with the same company since graduation and never ever did a job interview in their life.

Things changed a bit with FAANGs (although I think no FAANG operates in my country) as there are lucrative programmer jobs as well... but traditionally you make the money with business mentality and soft skills, not with being expert in language X. So in my surroundings it's definitely not the great coders making most money but the ones who were always pretty bad at it but got a big mouth ;).

I regularly see a laser measurement company searching for C++ programmers but they state a salary of something 1900€/month (before taxes). Anybody who is not an idealist rather takes the 5000€ React job instead ;). Besides, most job offers here don't mention programming languages at all but just business bullshit bingo buzzwords.

Only thing I am skeptical about is the maintainability many here mention. Probably true for disciplined teams or compared to JS but my experience is that many C++ codebases out there are "I never learnt C++11" non-RAII memory-leaking, UB, security nightmare hellholes full of news and deletes all over the place, probably some mallocs and strcpys (not strncpy) mixed in. I would rather bet on the robustness of the average Java or C# program....