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.
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::rangesandstatic_assertis 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
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
Jan 24 '22
[deleted]
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
Jan 24 '22
[deleted]
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
6
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
Jan 23 '22
"as little as £100k" lol.
5
u/graypro Jan 23 '22
I mean those are the numbers
0
Jan 23 '22
[deleted]
2
u/SubstantialBar8779 Jan 23 '22
levels.fyi
0
Jan 23 '22
[deleted]
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
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 (0)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
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
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
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
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
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
Services, particularly webdev, are a huge chunk of the industry nowadays
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.
From a business perspective, time-to-delivery can be more important than squeezing out every last CPU cycle.
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
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
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
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
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
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
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
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
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
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
Jan 23 '22
[deleted]
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
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
Jan 24 '22
[deleted]
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....
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.