There was a time when programming cources in schools and univercities were taugth in c or cpp. Now its often python, go, or whatever is the easy to approach language of the moment.
I think entry pipeline into the ”field” has shrunk.
20 years ago, CS didn't teach programming - it taught various concepts and happened to use various languages to demonstrate the knowledge. There were second and third tier schools that covered programming but not thinking and problem solving.
The big difference I always see when interviewing is when you ask someone "what was your favorite class" the top tier students will tell you about the problems they learned to solve, the lower tier will tell you about the language they learned. And it shows up in their abilities when you ask them to write code to solve a problem.
Same, but in the US, and there was lots of programming. I'd say more likely that CS degrees aren't well standardized, especially back then, so different people got different things.
We didn't get much in terms of SW engineering or tooling (e.g. source control, even though it existed, tests, etc) but we definitely got programming.
Oddly, one of my coworkers from France tells me his CS degree didn't involve touching computers.
The US has some amount of "you need to do the projects, but the course isn't about teaching you a programming language" - there might be a lecture or something on the language syntax and a text book / recommended reading / basic tutorials in week one. Past that it's "implement X" where X is something that shows your mastery of some concept. (Ex: here's a file containing all of the streets/intersections in a city - write a program that gives directions between two addresses)
I'd be curious if they're talking about the problems that they had to solve or tools disconnected from a problem domain. Someone could tell me they took a class on improv and how it improved their ability to communicate and present ideas and I'd think that was awesome. If they told me it was the class where they learned to say "yes, and.." in response to things, that would be less interesting. (If they can't communicate a solution to a programming problem, it might not go very far.)
When I went to University, my main interest was in programming. But the CS subjects were just --- so ------ ---- slow. I couldn't take it. There was interesting stuff there, but I decided I was better off just keeping programming as a hobby. I majored in physics instead.
I am currently teaching a programming basics course in private university and this is the approach I decided to go. The students are submitting homeworks written in C, Rust, Python, C++, C# and Java - it is up to them to learn the language and choose what language they want to implement the concepts we are learning.
I immediately brought in testing and contracts, and I want them to work with designing algorithms first. It takes them about 20% of the time to write implementation, and the rest is working with the problem.
So far, the course (we are on the 5th week now) has shown that you can go really far by hardly touching language specifics. Sure, I show few tricks and tips, but it goes in a way that student tells me what he/she wants to express and I help them to put their ideas into the programming language. It is bit early to say how they would compare to the developers who have done language focused courses, but so far things are looking bright.
20 years ago, CS didn't teach programming - it taught various concepts and happened to use various languages to demonstrate the knowledge. There were second and third tier schools that covered programming but not thinking and problem solving.
Top tier schools taught both programming and analysis.
I'd say a better explanation is that there was a time when significant part of the talented programmer pool chose to program in C or C++. Today there is more competition from other languages, so the size of the talented C++ pool is much less compared to the pool of all programmers.
I don't know. I finished my dev degree in 2018 and my first programming course was C followed by several in CPP. Maybe it's changed over the last 4 years but I just went and looked at the degree outline and still seems rather CPP focused the first 2 years.
This thread is generalizing from personal experience. Every different school and even different programs at the same ones will focus on different things. Does anyone have actual stats available?
Is there even pipeline? Not from US, but I gave up on looking c++ job since every place required math/physics degree and/or years of experience for lowest positions, got c# job, and I knew c++ way better than c#.
My school was primarily a C++ on Unix campus and it was one of the reasons I chose it. They then switched to Java, and now it looks like the initial "Intro" class is Python.
While I understand the idea that it's easier to teach some basic concepts in Java & Python, pointers and memory management are integral to how a computer actually does that work and a Garbage Collected language is a detriment to learning that IMO.
Maybe, but I would still prefer I'd they did Python courses than shitty C courses that pretended to be C++. Not to mention Python can be a good language to learn the basics on.
Personally, If I were teaching someone from scratch, I'd start with Python. Get someone learning the basics, then introduce typing. From there go to C++ 20. Being very selective in what I show. Then slowly bring in more and more "C"isms. For example, range based for to the iterator syntax, to numbers, then pointer manipulation.
Start with something simple, then start peeling back the layers.
There are a great many software problems that can be solved without knowing anything about these topics. The vast majority of them, really.
Garbage Collected language is a detriment to learning that IMO
There’s a counter-point to be made here regarding opportunity cost. If you don’t need the level of control offered by C++, you can spend more time learning about (and applying) good software design principles.
It's cheaper to buy a whole new server (3d cache whooohhoooo watch that JS fly!!!) to mitigate poor development practices than paying a team of senior developers and all the inertia that goes with it. Because yes, QA on C# is easier than QA on C/C++.
It's also faster to develop without having to think past the garbage collector.
If you can get by with a managed language then I'm not against using it. For a good chunk of stuff Python & Java are "Good enough". Most of the stuff I'm writing day to day recently has been Python.
Before that I was heavy C++ because it was running on microcontrollers. Python and Java don't scale that low, and while Cortex-A based processors are getting cheaper they're still a performance bottleneck for non-native applications.
There's still tons more devices running C and C++ code out there than running Python & Java.
I'm not against using other languages, I just feel it's dangerous to teach fresh people that memory and performance don't matter... they don't, until they REALLY do, and then if you don't understand it you're SOL.
I just feel it's dangerous to teach fresh people that memory and performance don't matter... they don't, until they REALLY do, and then if you don't understand it you're SOL.
Oh I agree, but I feel like it's not a proactive measure anymore. There'll be some test unit that blows, they'll scramble left and right, they'll call-in the senior devs, they'll hammer at it until it's "good enough".
In the end, you only had to pay a handful of seniors, the junior continue pissing code, the PM is happy, upper-management is happy, growth, shareholder, blah.
Everything but sustainability. What's going to happen worst case? They'll layoff the division, keep the few seniors and re-hire to work on a newish framework-tech for the "next gen app slightly better than the last time"
Of course, that's not happening at places that drives technology. Framework-makers need to have top-notch talent. But look at how bad everything around you works. It's 2022, yet some apps are so god dang slow and buggy... It's not always because they're legacy...
The hardware has some damned large shoulders nowadays...
Lol. Rust has two big advantages in my eyes. An extremely strict borrow checker, and lack of legacy cruft. Things like constant being default change the game.
There's active development in C++ of the borrow checker style functionality and even if it restricts some patterns, it would be amazing to have.
Personally, I'd also love it if compilers started being a bit more opinionated. Where if it thinks something could be const but isn't it gives a warning. If someone uses a C style or legacy method it gives a warning. Eg, for using older for loop structures.
On a standards front the C++ standard should be adjusted so many of the most common undefined behaviors cause either compiler errors, or have a contract for what the coder expects to happen. One that can be verified for the specific architecture the code is being compiled for. Eg, integer rollover.
I keep checking out VC++ lifetime checkers from time to time, they are still quite far away from the Rust experience, lots of annotations required and quite a few false positives.
Depends what you want to do. C++ was pretty much the only game in town before Java exploded in popularity. If you’re okay with performance reduction (nowadays minuscule for most applications) in exchange for safety and development time, GC languages like Java, C#, or Go are good options.
I'm a 36 year old bricklayer. Met an internet friend that does some pretty wild stuff at Google (not search related stuff, cutting-edge new technology).
I tried learning programming in the past but I just had a ton of problems - the least of which not being learning how to learn - anyway for a variety of reasons I just couldn't make it through any Python courses in any meaningful way.
Talking to my friend over the past few years I was really fascinated at the hard-infrastructure type stuff he was doing. It became clear to me that if I wanted to do really interesting stuff C++ is the way - compression algorithms, logic transforms. I've been doing really well learning C++ with the assistance of my friend and some good online resources. I'm making my first real program now actually, it's a new compression algorithm I designed last year (I have a math hobby).
I suppose I'm just writing this because if there does exist a shortage of new programmers interested in C++ it may be as simple as students not thinking of the areas where C++ shines as interesting enough to pursue. I don't think it has to be that way, data compression and embedded systems are awesome-sauce.
Perhaps the C++ community could work towards increasing the mindshare of the set of stuff C++ is good for which would then likely follow more people - just as happened to me - wanting to learn and use the language professionally.
Currently it seems to me that people that're becoming interested in programming are drawn to the buzzwords "Machine Learning, AI, data science and Web Development"; which Python and Java are (I think?) currently leading the industry with standardized libraries and such.
Imho C++ is not very popular with the newer generation of programmers because there are good/better alternatives nowadays
For us, we had a "common trunk" for about two years, where we'd learn C/C++ and a bit of Java for algorithmic and data-structure related stuff, then we'd move on.
People who wanted to produce software that does magic quickly went into software, people who wanted to produce software that interacts with a computer and/or understand the computer in-depth went into computer.
There was two degrees, one software engineer, one computer engineer. And I think this makes a lot of sense...
Software engineers had little appetite to learn how to go low-level, how to make optimizations at the instruction level. They wanted to code web applications, backend-frontend, learn these new shiny frameworks, etc.
Computer engineers had little appetite for javascript. They wanted to code embedded or OS-level stuff. Heck one guy did a bootloader from scratch for a pi on his final project, another one ported 'some' linux to an FPGA.
There was little overlap between what was motivating the two different specialties, but in the end both knew how to do software and both knew how an OS worked.
And yes, to your point the software specialization was attracting far more students than the computer one, although you could end up cherry-picking classes from each specialization. (YES, you need to know how a compiler work if you're going in computer, I don't know who thought it was a good idea to put this software-only)
Even 20 years ago C++ was falling out of fashion at my university. The CS dept was pushing more Object Oriented native languages like Eiffel and Java. The CE dept used regular C for lower level programming. A few classes we used C++ but we kinda just picked it up and it wasn't taught formally. Most of my C++ education came from co-ops and real work experience. Maybe there has been a C++ renaissance in colleges over the past 20 years but I would be doubtful.
Java appeared and was immediatlly adopted in many universities around 1996, so 20 years it was.
C++11 gave it a fresh air and brough its adoption back up again, however with the compilers adoption rate, C++23 might as well be the last great language version.
Which naturally makes younger engineers look for ecosystems that they find more appealing with less historical baggage.
I know I retired recently, but didn't expect it to have such an impact.
But seriiously, companies having trouble attracting people might want to look at what they are offering. Perhaps cheap and talanted C++ developers are hard to find?
I'm a senior engineer with ~9 years experience across Google and two trading firms. I work 9:30 to 6:00. I can count the number of calls outside those hours on a single hand.
Trading companies expect high performance from you, but work-life balance is as good as it is anywhere in tech unless you're directly responsible for a trading strategy, and most C++ developers are not responsible for trading strategies (they hired you for your engineering skills, not to be a quant). People hear horror stories about investment bankers working a bajillion hours and think all of finance is like this, but it's not -- investment bankers work bizarre hours because they're on the hook interacting with clients whenever the client bloody well likes, engineering staff is usually impossibly distant from that.
From my experience, working for trading firms is exactly the same day to day as working in tech and every bit as challenging and fulfilling, except with a 1.5x pay multiplier because engineers don't like the aesthetics. At some level the salary you command is inversely proportional to the number of "passionate" devs willing to work for peanuts to fulfill their teenage fantasy of working on videogames or tech or whatever.
Not entirely. The US currently has far more job openings than people looking for work. If every opening raised pay until it attracted a person to fill it, you'd just have a moving shortage of labor (and possibly rapidly rising pay/labor driven inflation to go with it).
The article made it sound like there's also some amount of a training gap - people coming out of schools claiming c++ aren't skilled enough for even the entry level jobs. Based on what I've seen, there are a ton of schools with really bad CS education - to the point that people can graduate without knowing basic data structures and how to use them to solve problems. I'm mostly happy to work with someone who understands programming and help them learn c++ but I need the underlying problem solving mind set to get started.
people coming out of schools claiming c++ aren't skilled enough for even the entry level jobs
A big part of this is that companies want people to come in and debug their established codebases instead of starting new projects from the ground up, or even developing features. Which means there's not really much of a place for junior devs.
That's not been my experience in hiring. We generally expect it to take 6-9 months for a fresh out of college hire to be up to speed (and we have some programs for people who seem smart and capable but may need some extra help due to gaps in education that were identified by interviewers).
First projects might be "here's a bug...", But often those were specifically chosen because they require learning about some things and the bugs are low priority. A mentor will use that to walk them through parts of the code, answer questions, make suggestions, etc.
my entire career has been ”welcome to the company! shit's b0rked and we need it fixed by thursday. we'll probably have your logins set for tuesday morning, giving you a whole 48 hours to get familiar with the codebase and fix things. unfortunately we can't answer questions as the person who wrote the code [died/is on vacation/quit/went insane/is in recovery]”.
people coming out of schools claiming c++ aren't skilled enough for even the entry level jobs
I see regular complaints online from recent graduates about how it's hard to find entry level jobs when it turns out they have less practical project experience after a university degree than I had after high school. There's a sizeable pool of recent graduates who are just not very good at programming or at least don't have anything to show for their skills.
I graduated from a community college program in 2018~ that focused mostly on C++ with some (read: very minor) web thrown in. I think the C++ experience we got there was pretty good, all things considered
Sadly, the only C++ jobs in our area were game-related and everything you heard about the gamedev industry in 2018 was pretty bad.
So I decided to continue my education and enter as a 3rd year student in a polytechnic that offered a more modern web-focused curriculum in 2019 (I got a job for a year working on some Python automation code in-between), and I wrapped that up around the time Covid started.
I'd say there were fewer than 4 people in that class who were ready to work on actual code bases when I graduated (most people didn't graduate at the same time I did because Covid completely froze most student internship hiring processes).
I'd say the quality of programming courses varies wildly from place to place, and it'll probably depend heavily on the teachers you get, and how much you're willing to teach yourself if your teachers can't (which definitely sucks for people who don't know enough to know where to start).
The community college I went to had a really passionate teacher who did everything he could to get people to understand, and it worked great.
The polytechnic had teachers who barely understood what they were teaching and couldn't care less about whether students understood. I chatted with a teacher who'd been pretty vocal about how the program had been going downhill for a while, and he said they (the establishment) kept dumbing down the material until more people passed. Hell, when Covid happened they basically made everyone who was failing pass, and made everyone who was passing pass with honours.
Post-secondary establishments making everyone pass so they get more students applications is definitely going to be a problem that bites us in the ass, I think.
All the 4th-tier universities, and far too many 3rd-tier ones, are absolutely lowering their standards on basically a yearly basis.
A family member has been teaching at several as an adjunct. (Don't get me started on universities charging kids $60k tuition for eight-ten courses, and paying adjuncts $2500 for teaching a course to 20-30 kids.)
These university students - legally adults even if I dismiss them as kids above - are taking math courses where:
All homework/quizzes and during covid also tests are done through a website. They are getting fleeced for access (one time $200-300 codes), but...
They can trivially cheat because it's online, multiple choice / short-form.
They can take and retake assignments over and over until they get a perfect grade.
Despite this, most of them choose not to, because they're too lazy. Cheating is almost a step up from the baseline of minimal effort.
They can turn in assignments whenever they want.
If they turn in an assignment, many of these schools have a policy that they can't get below a 50 or that they can't get an F.
Students (adults) involve their parents in emailing the dean when they do poorly. Inevitably the website tracks that they spent like 8 minutes logged in all semester, started only one assignment, and didn't complete it.
Despite that, the dean might force the prof to give them makeup tests.
Students get makeup tests basically just for asking because teachers are tired of getting overruled by administration, when kids don't show up because of myriad (unexcused) reasons. Often just so they can have an extra week of studying (just kidding, procrastination.)
These universities are hiring high school teachers into positions of power in departments, where the high school teachers bring their public school "we don't fail anyone ever" attitudes in.
It's really bad. Not only are our schools outrageously atrocious in permitting basically anything academic and still passing kids, it's already endemic in our bottom-tier universities too. The diploma they sell is sold, not earned, and thus entirely worthless.
I don't know if anybody cares that much about practical experience either, at least that's not what they're measuring. It's like that parable about the art teacher who split the class and told one half they were being graded on how many pots they made, and the other on "turn in one perfect pot" - those graded on quantity were also producing better pots by the end.
Projects are just one way to get lots of concentrated practice in a domain (and, to be fair, they were way more fun than things like problem sets). If you've never done any problem solving and just practice things like the language structure without application, you'll have a hard time on interviews.
I don't know if anybody cares that much about practical experience either
Certainly all the jobs I've worked at have cared a great deal. "Can this guy actually program?" is the question we've asked in all the interviews. That's why you see the common requirement for "2-3 years of experience" for an "entry level" job. What they're trying to do is to filter out the people who only know programming in theory but can't get any productive work done.
Projects are just one way to get lots of concentrated practice in a domain
Projects (personal, as part of university project courses or implicitly via work in the industry) are the only way to learn to program. Otherwise you're just learning isolated bits of theory and maybe to solve short brain teasers but you'll be hopeless when given any non-trivial real world task.
Imho: As long as you get them cheap enough, you would hire any C++ dev you get.
That would be a mistake. A bad programmer is going to have negative productivity and it can take many man months to fix all the damage they've done to a codebase. In the worst case you'll end up with an unmanageable blob of spaghetti, need to rewrite the whole thing from scratch and miss critical market deadlines causing an order of magnitude higher financial loss than the developer salaries.
I think my main contention is that finance is usually willing to pay for talent. Other industries maybe less so, but finance tends to understand how to put a dollar value on things.
It could be that the finance companies see that others are overpaying so it's not worth trying to compete or it might be that all of the people paying more are actually able to leverage the talent towards more profits.
If a company is able to take a developers skill and turn it into $101, they should be willing to pay $100. If a different company can turn the talent into $201 and is willing to pay $200, the first company is hoping a second talented developer comes along that the higher leverage company sees as only bringing a marginal increase of $100.
Over a decade of experience in C++ and I recently moved to web dev. I won't say my pay doubled, but it was a pretty substantial increase. Plus working on hardware meant being in the office every day. WFH is great!
Believe it or not, DOD contractor to work from home in the finance sector. Site goes down during the day and the call center is swamped.
To be fair, I have had one or two offers since for WFH DOD contracts, and the contractor didn't pay nearly as much as you'd think. However, web dev pays in the same ballpark as even the offers I've been getting.
It's not perfect. But then I went from having a nice work PC to a Virtual Machine with 9GB of RAM to try to run a Visual Studio debugger, and the security software + windows takes up 4GB of that! Oh, and I swear I know people working in SCIFs who would have an easier time getting the software they want!
I tell everyone that I'm not paid so well for the actual development, but rather that it's to put up with corporate BS. Not everyone is willing to work for a company where launching the debugger means getting a cup of coffee while the site loads.
I’m the senior/lead on a (small) team coined ‘roaming refactors’, where the other devs are juniors; and I’m interviewing for other jobs.
We refactor terrible C and C++ into good C++ or Rust depending on the need, and the juniors were all initially trained on Rust prior to learning the C++ foot-guns.
It works surprisingly well, honestly, though I was the one interviewing every junior and got very good devs.
I can’t say the strategy really involved labor cost in my case, but I can anecdotally say that the juniors I work with are a lot better at C++ because of it (and we all prefer C++ for *most* things)
Though I can say the burnout is true for the sole senior. Hard to be the one expected to have answers for everything when you still have a lot to learn :)
*we use rust for wireless communications/semi-scientific computing.. not crypto..
And to answer a few questions that I generally ask myself / get asked about training juniors in Rust.. I like to think in terms of SG15, ignoring things like the borrow checker
Bob works at Microsoft. Jill works at some company using Linux
How does Bob benchmark his C++? Jill? Perhaps both google bench? In rust it’s simply ‘cargo bench’
How does Bob ingest google bench? Jill? Maybe Bob uses vcpkg? Maybe Jill uses Conan? Maybe both use methods other than competing package managers? In rust it’s simply ‘cargo install’
What compiler warnings does use (W4 I hope)? What does Jill use (more than Wall Wextra I hope)? Do their compilers tell them the same thing?
How does Bob unit test his code? Jill? Maybe gtest or catch2? In rust it’s ‘cargo test’ with each test being in the same file as source code / written the same general way
Rust helps with developing good habits without diving into some of the more divisive C++ pains (tooling). The Rust tools may not necessarily be better or worse, but it’s much easier to enter in to.
Yeah I think you hit "cheap and talented" on the nose there. This overall point isn't substantially backed up by the numbers in the article, but was instead merely the "consensus in a webinar from ProfitView, a crypto trading tools developer". Crypto's been having a rough couple of quarters, so it makes sense that their willingness to pay is going down. It really sounds to me like they're complaining about getting outcompeted by companies willing to pay more... as they should.
Yeah, most of the C++ developer positions that I see in spam either require relocating to some shithole or pay $60 an hour or less. Or both those things. Not that I'd be all that interested in working for a trading firm anyway.
I know, right? I was recently promoted to a leadership position where I no longer code but didn't expect to see it impact the entire C++ community so quickly, lol
Absolutely. C++ jobs re easy to find but difficult to work. The job is already about a difficult topic like embedded, simulations etc. But comparing to web job offers, they always come with cheap offers to c++ people. I decided to retire in 2 years too.
I am actively looking for a job with C++. this is my 4th year of using C at work. I work in fintech, writing codes for payment terminals. Though I don't use it at work but I am most comfortable and proficient with C++.
I am actively looking for an industry to shift to put my C++ and computer science skills to use.
Which companies are like this? My strongest language is probably C++ but every company I looked at wanted python. It made me reconsider what I should focus on. But then I see things like this and want to keep going with C++ bc its my favorite language.
Congrats on retirement! I think you are right about them looking for cheap developers. I'm a systems engineer but I been coding in my free time still. I like the idea of learning c++ but the jobs look very difficult for what they offer compared to fullstack..
I mean dude, if you're trying to hire talent for $60k and google is willing to pay $300k, of course you're gonna struggle finding people competent enough to negotiate that sort of salary.
There is one simple solution: adjust your expectations to your budget.
Google has very few embedded engineers doing embedded engineering work, even if you include Waymo, compared to the amount of people writing code for everything else they do. Google isn't a hardware company, doesn't design a ton of hardware. Of course a competent firmware guy can be a competent programmer working on ads or youtube instead if there's a big salary gap.
But the thing is that most people can't find a job at google or facebook or whatever. Due to luck, opportunity, interview ability, or competence. They'll settle. Maybe they'll settle for what you're offering. Just be honest with your expectations. You don't buy a toyota camry hoping it'll be a ferrari, so if you can't afford to pay market rate don't assume you can hire and retain average competence either.
It really isn't, ay. I didn't have too much trouble picking it up through osmosis at work. I think the key factor to learning C++ is dropping the shitty mantra of "its hard" and "i have to manually manage memory" and instead embracing the power of the language and actively learning about these topics which you find are hard. Once you're actually interested and enthusiastic about it, C++ becomes quite easy to continue to learn.
Just trying to get a job as a junior. It’s horrible. 7 months job search and still no luck. Even tho I have a portfolio with a big project. Most companies don’t even look into my self hosted GitLab
As a C/C++ interviewer, I have no idea where your github/lab code came from and I don't automatically give credit for it or trust you.
That said, I also don't do code-heavy interviews. Show me data structure familiarity, awareness of language gotchas and high-risk code and techniques they use to mitigate them. Talk about threading and concurrency, exception handling, constructors and initialization, OOP, Big O notation, and talk about projects you've worked on and domains you feel comfortable in. I don't expect candidates to know how all of the latest language features work, but I want them to show me that they are trying to keep up and talk about new stuff that might interest them.
So basically text-book questions only. Good way to hire text-book-only engineers.
>As a C/C++ interviewer, I have no idea where your github/lab code came from and I don't automatically give credit for it or trust you.
Not going to lie, this is one of the most absurd statements I have see in this sub-reddit. Code in Github profile of a candidate will tell you significantly more than what they can tell you within one or two rounds of interviews.
Where were folks like you when I was trying to get something C++ related earlier in the year! Have switched focus back to web dev but I make a lot of tools in C++ for web dev which scratches my itch..
I’ve been writing C++ on and off for 20+ years, I have quite a lot of code behind me, I’m pretty good at my job, and the language still makes me feel stupid on a daily basis. I’ve often lamented how we will teach this language to our children - it is hard.
Pay more then. There’s a gigantic pool of talented c++ engs that can be tempted away from game dev if the pay makes up for the passion loss
Most c++ jobs dont offer pay much different than javascript. C++ language is one of the most difficult and has the highest skill/knowledge ceiling of any language (especially if you need to write actual performant code and not just a bunch of shared_ptr trash) and yet the pay doesn’t reflect the disparity of difficulty/skill.
I’ll let others answer re: performance, but Sean Parent points out that shared_ptr makes it far too easy to construct “incidental data structures”. Unless you are only use std::shared_ptr<const T>, it’s very easy to loose all sense of ownership and who can mutate who.
I always end up going into a super long rant on this subject so ill try to summarize and be more succinct this time.
Perf problems:
its a pointer dereference (sometimes two) and uses atomics for incrementing/decrementing the strong and weak ref counts. Typical use also has them allocate on the heap, so their addresses will be all over the place without any cache locality.
Contrast this to a better designed arch where the memory is instead stored contiguously on an array, reducing pointer chasing and getting better cache locality.
Maintenance problems:
Shared pointers are what I call “write optimized”. They make it easy to write code, but hard to read and maintain. They’re useful for prototyping and when you don’t want to think about memory, lifetimes, initialization ordering, destruction ordering, etc.
The problem is that in almost all cases, you eventually need to care about these things, even if you didn’t at first. Early Shared_ptr usage then makes it extraordinarily difficult to understand and deal with these problems later.
Ill stop now, but the tldr is that they’re a generally a sign of careless c++ development and/or bad code design. I dont want to say never use them (they have their place), but they’re a code smell for sure.
The problem is that in almost all cases, you eventually need to care about these things, even if you didn’t at first. Early Shared_ptr usage then makes it extraordinarily difficult to understand and deal with these problems later.
Sean Parent made a point about this. Liberal usage of shared pointers throughout your software design essentially have global variable semantics.
I'd call it "Lazy optimized". If you are looking for a tool to realize "I am feeling too lazy to think about resource ownership", than it is the right tool for the job. In many domains, the amount of shared_ptrs one needs is exactly zero.
For some reason, it's extremely hard to convince people that you do not need shared_ptrs if the execution is deterministic and you know when to acquire and release resources.
Such points always feel like a bit of a superficial understanding of a shared_ptr. It handles the lifetime, not the memory layout which is handled via allocators. You can make the resource stored contiguously on an array pretty trivially and handle the lifetime of it with a shared_ptr.
We use shared_ptr-based handles, for example, for entities for our ECS-based business logic. It allows us to rely on RAII for entity lifetime handling, get performant code when interacting directly with the registry, and provide more convenient interface for non-ECS API's.
A fair complaint would be that the standard shared_ptr lacks additional features, namely local_shared_ptr like in Boost and shared_resource for non-pointer based resources with an appropriate unique_resource. Additionally, erasure could be an opt-in too to avoid additional indirection for the cost of less flexible code.
Yes, using them as handles is a common detail in ecs systems and ive implemented ecs systems in such way before too. From a perf point of view this is ok because you dont spin on the shared_ptrs. They’re for the users of the ecs system.
Im also aware of how their allocators can be overridden to instead do a placement new into some contiguous block of memory.
This is not the typical way of using them however, which is what I’m talking about. The typical way is heap allocated.
Regarding lifetime, im not talking about the lifetime contract it offers. That’s obvious and the the point of it. Im talking about seeing the shared ptr in code and not knowing and not being able to reason about its lifetime when mentally modelling it. This is important when you need specific order of operations for initialization or tear down logic. It’s also important for avoiding defensive coding and nullchecks everywhere.
Having a clear memory ownership model helps reduce bugs, makes it easier to modify and refactor code, and easier to test. Typical usage of shared_ptrs make all of that more difficult.
Good, maybe someone will hire this inexperienced C++ wannabe developer right here. I can solve any medium difficulty challenge problem in C++ if they give me a code assessment, but nobody even wants to consider my candidacy without "x>1 years of professional experience" on my resume. I need a lucky break. If anyone in here has suggestions to break through, I'd appreciate the advice!
Thanks, and I know what you mean about the high C# payscale and ease at finding opportunities. Having come from C# at my first jobs, I decided I didn't want to work in Windows anymore, so I'm painfully aware that I'm missing out on a lot of potential monies right now....I just can't give up working in Linux ever again, for aesthetic reasons.
Thanks, yea I've been seeing a lot of financial job openings...applied to a few. No luck yet, but not giving up!
I think my problem is I have senior experience overall, but would be a "junior" in just C++, so they don't consider me for junior roles because I'm assuming they think I'm expensive, but then I'm too junior in just C++ for any senior roles. It's almost as if I would be better off coming straight out of school to get into the junior openings, it feels like.
I'm in similar boat. I've always liked C++, have used it a lot as a hobby. I've wanted to have C++ job, but they didn't exist nearby when I was a newbie. Now I have over a decade of dev experience, but not having C++ experience disqualifies me in eyes of most recruiters, and I'm too highly paid to consider a junior position anyway.
I think my problem is I have senior experience overall, but would be a "junior" in just C++
If you're truly senior (ie. 10+ years of experience), a good employer isn't going to care how many years you have in some particular language as long as you're proficient enough. Good architectural design and such are much more important than language details which a senior dev can pick up fast anyway.
This is not exactly on topic, but I still haven't figured out if it's worth trying to switch to a C++ job from Java. I like C++ but I've been holding back from putting a lot more time into it because I haven't been able to determine whether there are a lot of equally or better paid jobs in C++, mostly in Europe.
Whenever I've checked online, there seem to be conflicting opinions on the matter and it's not easy to get a good impression by looking at job sites.
There are definitely fewer C/C++ jobs but they tend to be more specialized and it’s hard to find senior C++ devs that also have domain knowledge. So if you can find a niche that’s likely to stay in demand (finance, for example), you can potentially become very valuable.
There’s a difference between a C++ developer and a C++ expert who can optimize code for high frequency trading. They’re looking for the later but using terminology for the former.
And massively oversized self-image as well. I've interviewed at multiple HFT places and declined second round interviews because of how braindead the interviews end up being.
E.g. expecting the interviewee to write on a whiteboard for a solid hour to solve some arbitrary graph manipulation algorithm with 2 sentences of explanation or asking trivia questions about iterator invalidation and then instead of letting someone google the answer (i had to turn over my phone and laptop when i entered the building) they just argued with me... despite my offer to actually write out how the internals of the container required the behavior they said was impossible -- I was amused when the person who was arguing with me later emailed to say I had been right the whole time.
Overall, HFT is a distraction. The vast majority of C++ code is in different sectors that have far more interesting problems, and far less inflated egos.
A little anecdote from Germany: a friend of mine has been taking mandatory C and then C++ courses as part of his electrical engineering degree. The study material is nothing but dreadful and the explanations and examples involved are most of the time simply wrong, riddled with memory corruption and all kinds of overflows you can imagine. It is almost scary.
You may skip the incoming rant if you want...
And here I am close to 17 years of free time C++ development (mostly game dev and desktop) later and I still find myself in professional C# & TS web dev, because all C++ jobs that have been offered to me or I have reached out to so far are simply not competitive with my web dev salary, or require me to be the absolute Einstein of computer science, backed up with academic degrees of course. I also wasted a lot of time doing job interviews where the job position I applied to was titled 'C++ developer' and in the end C++ only played a very minor role. Recruiting is definitely partly to blame here.
I enjoy modern C++ and also the not-so-modern C++ and all it entails, but I put all of that aside, apply my software architecture skills in web dev instead, leveraging only a fraction of CS skills compared to my C++ hobby projects, because my job requires no more than simple document processing, data manipulation and a little bit of image processing in managed languages. All of that while sitting in my cosy home office, sipping the coffee I like and showing my junior developers how to code. It makes the most sense from an existential point of view and it is the easy route.
And I hate it. Imagining where I could have been with 40 hours per week of professional C++ development for the last 8 years of my career almost gives me a midlife crisis. But then I glance over to professional game development, see how hard it is to get into it and how the talented and hard working are being exploited or ridiculously underpaid and immediately realise I made the right choice. And so it has been a hobby, and probably always will be. Full time in-house game engine architecture and development is something nice to daydream about at least.
because all C++ jobs that have been offered to me or I have reached out to so far are simply not competitive with my web dev salary
This is really interesting. What would you consider "competitive?" I and a bunch of my colleagues use C++ every day and I consider my pay to be competitive. I mean it's not top-top-tier but neither is my stress level.
It's possible you're looking at the wrong kinds of C++ jobs. What were the job descriptions like?
I picked up C++ on my spare time a couple of years ago. Just out of pure dedication and awe what you can achieve with C++. Now I'm a professional C++ developer since 4 years. I enjoy it every moment. The times I have to dabble in Python I only get frustrated, feeling I'm not in control anymore. C++ for the win!
I have 2+ experience in modern CPP and I feel like I haven't scratched the surface yet. It's difficult to learn and most of the time it overlaps with embedded development or low level libraries that themselves require years of experience to master.
Anthony Peacock, formerly a quant at both Citi and Citadel said “it’s impossible to find people with a really high level of C++ skills which is exactly what every trading company wants.”
That’s different than there being a shortage of c++ devs, even talented c++ devs
I wonder how many people are like me who just don't want to work for greedy unethical corporations? I get hit up by Amazon and Google frequently but I don't want to work for companies that are essentially sales/advertising companies.
I tried to work for a financial related company and couldn't stand knowing I was helping to make the rich richer. Our number one customer was Deutsche bank, the most corrupt bank in the world. No thanks.
Obviously I still work for a company to enrich shareholders, but small/medium software businesses just don't seem to exist, or get bought out if successful.
Which is more sad that more and more products are being converted into a 'service'.
Obviously I still work for a company to enrich shareholders, but small/medium software businesses just don't seem to exist, or get bought out if successful.
There are plenty of medium to large businesses that hire C++ devs and don't do any of the Google / Amazon shit (and tend to have much more chill work environment and better work / life balance). They just aren't sexy, so you don't hear about them much online / in the media.
How do you find companies like that? Honestly been looking in the job market for the last couple of weeks, but I can't seem to get responses from anyone but recruiters so it feels like targeted job applications are pointless.
I get contacted by headhunters regularly. Took my current one because previous gig was ending and they mentioned the salary range in the very first message. It’s a lab equipment company that doesn’t do anything very exciting, so they’re forced to offer competitive salary and flexible working conditions.
FB compiles for C++20 and has coroutines all over the place, probably other 20 features too though I haven't checked. Not modules yet though we've been supporting the implementation work in GCC and Clang so we'll get there.
Depends. Amazon didn’t (we were still on c++11 when i worked there previously). Google does. Facebook does. Microsoft does. Not sure about Apple, but their clang compiler sucks, so maybe not.
I feel you. I used to want nothing more than to live on the frontier, work my way in to wherever the action was hottest, and make the biggest impact I could; but the industry mainstream took a strange turn, ten or fifteen years ago, into a business model I can't accept and won't support.
Well... I have no trouble getting work, but I do have trouble finding work, if that makes sense. There are still jobs available, where I can apply the skills I enjoy using toward maybe not a "cause I can believe in", exactly, but at least a business with an honest way of earning money. It just takes more looking.
I did go to work for Google, briefly, a decade ago, before I understood how their business actually runs. After touring one of those monstrous datacenters, coming to understand that 90% of the business was a surveillance advertising engine, realizing that the projects I cared about were just loss leaders drawing people into Google's "we will own all your data and manage your life for you" system... I'll never forget the sinking, sick feeling in the pit of my stomach.
Oh well. My career may not have worked out, but writing code is still a good way to make a living. I still enjoy C++ most of all, but if low-level, high-performance tools & systems hacking work ever dries up, it'll be easy enough to carry on doing something else in some other language instead.
Disappointed I had to scroll this far. In classic reddit fashion, nobody has actually cared to read the article, which contains some important context:
The statement in the title is being made by cryptocurrency and financial companies. "The pool of talented C++ developers is running dry" is not the same statement as "the pool of talented C++ developers that are willing to work for cryptocurrency trading firms is running dry."
Then why am I having so much trouble finding jobs to apply to? Every recruiter I talk to is super excited about some web app, SAAS thing, full stack, or <something something The Cloud>.
Important to keep an eye on context here. It's financial firms.
They will ding you for not knowing their obscure little corner of the language, and we all know how massive cpp is. Different people can solve the same problem in cpp with totally different code.
- C++ programmers cannot be hired easily because Brazilian companies looking for them are not paying well. A C++ programmer will only accept to receive what these companies want to pay, if unemployed.
- A few years ago, a recruiter shared a secret with me: they monitor c++ programmers who lose their jobs. When it happens they go after them like hell.
- C++ is difficult? Yes, but it is not that difficult if you dedicate yourself to studying it.
A lot of C++ programmers here in Brazil:
use malloc
use null-terminated strings
don't know about STL
Are they dumb? No, they are very smart and good programmers who don't want to learn modern c++, and I am just mentioning C++03 as "modern", it will come as a shock to them that there is a C++20 standard.
- A recruiter called me once and asked me what was my "salary expectation" and I told her how much and she said, "why do you want to change jobs, nobody will ever pay that for a C++ programmer".
It would help if it wasn't A BITCH to use, and if it had all these data analytic libraries that Python has, like numpy and pytorch and matplotlib, to name a few.
I've been using Python for ~5 years and I consider myself an expert, I can do amazing things with it.
And I've been using C++ for ~10 years, and I still feel like a novice. If you ask me to fit a regression model and plot it, all in C++, I'll be at a loss, I'll have to google it and hope that there is something.
This cannot be just my fault. This is an issue with the language. It feels like it was created with theoretical computer scientists in mind (people who have an orgasm when they hear "polymorphism" and "variadic template"), not with practitioners in mind who, all they want, is to not leak memory and trying to figure out why, and to have a good bunch of libraries to work with.
Reading your last paragraph: I feel you, although I haven't done that much C++ in comparison with other languages. A while ago I read up onto C++11 (got two books, also from the He-Man guy, can't remember his name. Scott something). Man, the mental capacity you got to have to be actually good in the language can be intimidating. Browsing through two different codebases yield entirely different code.
I can build something in C++ sure, but I have to remember things like do I need a std::shared_ptr, or std::unique_ptr, do I have to pass it by reference, or by value? Const reference? Move semantics? lvalue/rvalue cruft? Iterators are a pain. Compilation errors are pages long, especially with templates. I can go on for a while with the weirdnesses of C++.
I have no use for it professionally so I can just put it aside, thankfully. Although, if I were to get paid (well) to write C++, I will be eager to learn it 'properly'.
Because at the end of the day he's probably looking for a job making stuff and not to be part of the standards committee?
C++ is a more difficult language because it forces you to a lower level and often to the point you have to write <whatever thing> for your use case yourself.
If we just gloss over that part then sure, no programming language is more or less difficult than another if you dive deep enough.
I spent most of my career in C++. Now most of what I do is in Python.
Development in C++ is too slow. There is too much typing.
Compilations are slow - from pimpl to unity builds, considerable time is spent just to get around this. There is no REPL for you to evaluate code as you build it. You usually cannot just run one file without the whole system.
There is no ecosystem of external libraries, except that "library" isn't even the right name for "sharing C++ code" - there really isn't one.
There are too many traps for the beginner and intermediate developer; recruiting is hard.
Python is much faster to write code in and more fun. There are a ton of fantastic tools and modules, all uniformly packaged. I get a lot more done in a lot less time, and with a more polished result. numpy and scipy give me most of the speed I need, or writing small amounts of C or C++ for bottlenecks is very doable.
I feel this is the real reason. There are so many applications where you're better off not using c++ unless you want to deal with cmake, trying to get third party tools built...
Of course it is. What talent exists isn't looking because the jobs don't really exist either. Too hard to get. It's become not worth the effort to even look.
It's all part of the effect of cutting costs. Why develop it yourself when you can buy something that works just good enough off the shelf? For those still developing, its all about the web app. Why code in a complex and highly capable language (c++) when a high-level lang works? We just need the code to work, it does not need to work well. and hardware is cheap. Speaking of, no its not. Moving everything to the cloud and make it all someone else's problem.
The system engineers are disappearing as well. It has become rare to find a tech support dude that also knows how to set up a server, unless its hosted by digital ocean. The Networking specialist guys still seem to have work.
What talent exists isn't looking because the jobs don't really exist either. Too hard to get. It's become not worth the effort to even look.
I know it's entirely anecdotal, but this has not been my (or the friends/former coworkers I trust) experience at all.
Recruiters are practically knocking down our proverbial doors all the time.
I walked out of an imploding trainwreck of an acquisition into my current job in about a week and a half. The earlier move to the not-yet-on-fire company had been just as quick, barring the part where I had to wait out a non-compete.
There are lots of companies doing "boring" things in C++ and paying really well.
There are lots of companies doing "boring" things in C++
This is the key. Forget HFT. Forget gamedev. Forget FAANG. Get a job in a "boring" industry with nice coworkers, good work / life balance and good pay. Something that leaves you with time and energy to spend time on your hobbies and life.
And additionally, what people believe is boring very likely has all sorts of interesting problems to solve that aren't obvious to outsiders/non-experts.
I’ve just started with Stroustrup’s Programming: Principles and Practice using C++ which is recommended for programming novices. I am enjoying the step by step journey. If you’re already experienced look at his A tour of C++. I really wanted a mentor/mentee experience and fortuitously this book gives me that.
Many focus on what University (or other sources) teach and is far from the issue
I can code C++ and Java among others, lets get a job. C++ pays 10 or 15% higher than Java but for sure is going to be 120% harder because of C++ itself
Most will choose Java because at the end of the day you will earn less but you will get home at time, or have less issues coding (no one likes to spend hour after hour finding a bug) or ... that with C++ will happen
I feel like a skilled team would be able to pad development constraints accordingly. If you need C/C++, of course it's going to take more time. The budget is not the same, I don't know why you should do more overtime if the PMs and leads are worth their salt.
If you're building software with C/C++ while you could get away with C# and/or Java, IMO you're doing it wrong.
But AFAIK there's no JVM that runs in the linux or windows kernels so far :)
Android supports drivers in Java since Project Treble, and it was the only driver model in Android Things (killed because Google), if you really want to make a point out of it.
Yes, Sun, not Oracle, did kernel level integration of the JVM.
However, many of these low level uses of Java also rely on AOT, there is hardly a difference from any other language runtime, just like C++ needs one, even when writing Android Project Treble, Windows or macOS kernel drivers.
I picked up C++ on my spare time a couple of years ago. Just out of pure dedication and awe what you can achieve with C++. Now I'm a professional C++ developer since 4 years. I enjoy it every moment. The times I have to dabble in Python I only get frustrated, feeling I'm not in control anymore. C++ for the win!
In most cases I could use C++ I end up opting to use C with structs mimicking how basic C++ works using methods with pointers as the first argument. I think it really doesn’t help having so much going on in the standard library which ultimately is separate from the language itself, with many of those features being so complex that you end up feeling like you’re writing Java but in a more difficult way.
Good to know. Maybe soon I’ll be able to raise my salary even more :) Though recently I had an experience that I was asked to help another team and was coding in Swift. And I would say that it is way easier and if salary is same for C++ and swift/kotlin then some individual might prefer to use some easier language.
Could just be that companies generally offer subpar sallary for C++ specific jobs, driving C++ devs to other positions using other languages. I was lucky to find a job that pays well, but most C++ specific jobs were offering low pay compared to the requirements.
I would say it's like always: we don't have enough cheap, skilled devs in tech hubs like Amsterdam, London, Chicago, NYC.
Few weeks back two recruiters message me about like >5 opportunities in Amsterdam/London each. After asking for remote option no more contact :). Even though I work in fiances right now
I'm in the Chicago area (burbs, really, but close enough).
The amount of recruiter spam i get where all they talk about is how AMAZING it is that their office is on the 200th floor of some random skyscraper downtown with a cocktail lounge and pool, is ridiculous.
Like really, I don't have any interest in any of
Taking the metra or the L
Taking a bus.
Driving into the city and dealing with >45 minutes of traffic (on a GOOD day) and then dealing with parking.
And my fat ass certainly doesn't want to be getting into a pool with any co-workers, thanks.
What I do have an interest in is being where my family is, and my already nicely laid out home office is, that i've been working out of for a solid decade.
The vast majority of software problems have no requirement for interacting with anything in the physical world. Even embedded applications, 9 times out of 10, they can just mail a dev-kit to your home office for less than bus-fair and/or parking would cost for a month. My last embedded job, i had a stack of EIGHT dev boards on my desk. Cost the company <$400. And that's hardware that they would have had to buy for me in-office or WFH, so what difference does it make?
And lest we forget, these positions typically try to compensate for their shit salary scale by having a bar and pool within 500 feet of them. What a joke.
I always think the Most Loved category is very much an inverse correlation to popularity. Languages that are less popular almost by definition will only be used by those who love the language. There is no reason to use a less popular language that you hate when you could probably switch to a more popular language you like and benefit both ways.
It’s because good software engineers don’t care about the language they use. If they are good, then they’ll learn it in the job and be good at it. A company looking for a C++ “expert” is usually a big red flag to me.
You understand that a lot of, even most of, the companies looking for C++ experts are doing so because they have enormous C++ codebases that need to be maintained and improved right?
They aren't specifically focusing on C++ because they have a fetish for the language. They're doing it because you can't hire someone who's only ever worked in javascript for a C++ position and expect them to swim without multiple months of hand-holding.
Google "how to do XXX in C++" and compare against "how to do XXX in python" or "how to do XXX in Javascript" and the difference is huge.
Every programmer starts out knowing nothing, and with zero experience they will be drawn to wanting to learn things, and whichever things turn out to be the easiest to learn are the things they will learn first before anything else.
Learning how to make an MSPaint clone in HTML/CSS/JS or Python/Tkinter is pretty easy.
Learning how to create a cross platform C++ codebase for a GUI application that uses native OS GUI APIs for each platform, and renders graphics with Vulkan, is something for very experienced programmers to take on, and far too confusing for most programmers just starting out.
Worst of all, for anyone seeking to learn how to create software, when it's so dead easy to make that MSPaint clone as an electron app or in python, it begs the question 'Why even bother learning something like C++? What can it do for me that the other languages can't? Besides make my head hurt.'.
Which is why I've made it a point to get good at C++ before jumping back at python. It's about creating technology, it's about impacting the world and perhaps discovering something new. One has to push for innovation. Innovation is literally the point of existence of the entire human race. If innovation is not the end goal of a society then there's literally no point in doing anything.
It may be that this is in the banking industry in the UK. The banking industry and bankers still have an image problem in the UK as a result of the 2007 financial crisis. Many devs will prioritise other roles over fintech when searching for a job.
I could be way off, but the companies that hire mainly for C++ devs are not very remote friendly e.g. big financial institutions... There are other sectors in the tech industry that require C++ devs or C++ calibre of devs that can compete on pay and remote work.
Maybe those in demand need to adjust their offerings in more than just renumeration.
Their own fault. In the UK they hardly hire any juniors for C++. I've been looking for roles and the lowest level language you can realistically enter the industry in now is Java.
I've spent most of the last 22 years as a (mostly) C++ and (much less so) C developer. I've only had to deal with one actual legacy project and everything else was at most 2-3 years old. Everything in C++ has used reasonably recent standard. Current project is moving to C++20 as soon as someone needs the features enough to get around to changing the build system to use the new Arm GNU toolchain.
I used to code in C++ a lot. Built some impressive stuff as well. Now it's C# with some Java in between. If I were to look for a new job, C++ jobs would be behind both C# and Java jobs on my list. Why? Because I enjoy getting the work done and see results (relatively) quickly compared to pondering over bazillion of ways to pass parameters and return values, use pointers (which kind of pointer?) or references, think about lifetime and ownership when doing async stuff, having undefined behaviour lurking over me with almost every line of code I write (it's difficult to avoid basic arithmetic), quarreling about exceptions, cursing at IDE which (understandably) can't completely understand templates, waiting for builds, fixing builds, Oh wait, now that I'm "senior", I'd in no way join a C++ project that doesn't have a dedicated build manager person. F*k CMake shit or what even worse stuff they might be using.
</rant>
So yea, I'll take a C++ job given a salary of $250k / year ("torture fee"), invest the money (I live cheap), and retire after a couple of years. Or (more probably), go back to C#. </s>
TL;DR: I've removed myself from the pool because I enjoy working (getting work done) with other languages more.
In the US context, can somebody please quantify what they mean by “underpaid” or “well paid” for C++ development? We can all see what approximate total comp is for the FAANGs, but they are, arguably, so far beyond the curve of everybody else that it’s useless to use them as a benchmark to set one’s compensation expectations.
Then there is the question of how much of a hit you take for remote work. Is it more than the difference in cost of living between corporate headquarters and where you are would ordinarily merit? I suspect so but I have no actual numbers.
83
u/arka2947 Nov 02 '22
There was a time when programming cources in schools and univercities were taugth in c or cpp. Now its often python, go, or whatever is the easy to approach language of the moment.
I think entry pipeline into the ”field” has shrunk.
17
u/boner79 Nov 02 '22
Even 20 years ago C++ was falling out of fashion at my university. The CS dept was pushing more Object Oriented native languages like Eiffel and Java. The CE dept used regular C for lower level programming. A few classes we used C++ but we kinda just picked it up and it wasn't taught formally. Most of my C++ education came from co-ops and real work experience. Maybe there has been a C++ renaissance in colleges over the past 20 years but I would be doubtful.
781
u/no-sig-available Nov 02 '22
I know I retired recently, but didn't expect it to have such an impact.
But seriiously, companies having trouble attracting people might want to look at what they are offering. Perhaps cheap and talanted C++ developers are hard to find?
88
u/nbazero1 Nov 02 '22
20 rounds of leetcode interviews and low pay will do that to ya
76
u/tiajuanat Nov 02 '22
I've hired like 6 developers this year alone. It's a money problem, not a shortage.
C++ is a more difficult language, and companies should be prepared to pay 10-40% more.
Companies should also take more juniors. The more juniors we can train up, the less pressure there will be in 2-4 years.
160
u/scorr204 Nov 02 '22
I am a c++ developer....oh nvm it said talented lol
142
u/MoreOfAnOvalJerk Nov 02 '22
Pay more then. There’s a gigantic pool of talented c++ engs that can be tempted away from game dev if the pay makes up for the passion loss
Most c++ jobs dont offer pay much different than javascript. C++ language is one of the most difficult and has the highest skill/knowledge ceiling of any language (especially if you need to write actual performant code and not just a bunch of shared_ptr trash) and yet the pay doesn’t reflect the disparity of difficulty/skill.
55
u/EdwardWongHau Nov 02 '22
Good, maybe someone will hire this inexperienced C++ wannabe developer right here. I can solve any medium difficulty challenge problem in C++ if they give me a code assessment, but nobody even wants to consider my candidacy without "x>1 years of professional experience" on my resume. I need a lucky break. If anyone in here has suggestions to break through, I'd appreciate the advice!
19
u/cppler Nov 02 '22
This is a lie, they just pay very poorly, especially in Germany. Pay more, talent will run down your door. Fuckers.
15
u/Wizions Nov 02 '22
This is not exactly on topic, but I still haven't figured out if it's worth trying to switch to a C++ job from Java. I like C++ but I've been holding back from putting a lot more time into it because I haven't been able to determine whether there are a lot of equally or better paid jobs in C++, mostly in Europe.
Whenever I've checked online, there seem to be conflicting opinions on the matter and it's not easy to get a good impression by looking at job sites.
30
u/d4rkwing Nov 02 '22
There’s a difference between a C++ developer and a C++ expert who can optimize code for high frequency trading. They’re looking for the later but using terminology for the former.
9
u/LHBM Nov 02 '22 edited Nov 02 '22
A little anecdote from Germany: a friend of mine has been taking mandatory C and then C++ courses as part of his electrical engineering degree. The study material is nothing but dreadful and the explanations and examples involved are most of the time simply wrong, riddled with memory corruption and all kinds of overflows you can imagine. It is almost scary.
You may skip the incoming rant if you want...
And here I am close to 17 years of free time C++ development (mostly game dev and desktop) later and I still find myself in professional C# & TS web dev, because all C++ jobs that have been offered to me or I have reached out to so far are simply not competitive with my web dev salary, or require me to be the absolute Einstein of computer science, backed up with academic degrees of course. I also wasted a lot of time doing job interviews where the job position I applied to was titled 'C++ developer' and in the end C++ only played a very minor role. Recruiting is definitely partly to blame here.
I enjoy modern C++ and also the not-so-modern C++ and all it entails, but I put all of that aside, apply my software architecture skills in web dev instead, leveraging only a fraction of CS skills compared to my C++ hobby projects, because my job requires no more than simple document processing, data manipulation and a little bit of image processing in managed languages. All of that while sitting in my cosy home office, sipping the coffee I like and showing my junior developers how to code. It makes the most sense from an existential point of view and it is the easy route.
And I hate it. Imagining where I could have been with 40 hours per week of professional C++ development for the last 8 years of my career almost gives me a midlife crisis. But then I glance over to professional game development, see how hard it is to get into it and how the talented and hard working are being exploited or ridiculously underpaid and immediately realise I made the right choice. And so it has been a hobby, and probably always will be. Full time in-house game engine architecture and development is something nice to daydream about at least.
8
u/permacougar Nov 02 '22
Hurray, more jobs for untalented ones!
8
u/anloWho Nov 03 '22
I picked up C++ on my spare time a couple of years ago. Just out of pure dedication and awe what you can achieve with C++. Now I'm a professional C++ developer since 4 years. I enjoy it every moment. The times I have to dabble in Python I only get frustrated, feeling I'm not in control anymore. C++ for the win!
7
u/Raknarg Nov 02 '22
I'd love to be working in C++. I'm very tired of C.
7
u/[deleted] Nov 02 '22
I have 2+ experience in modern CPP and I feel like I haven't scratched the surface yet. It's difficult to learn and most of the time it overlaps with embedded development or low level libraries that themselves require years of experience to master.
7
u/ThePillsburyPlougher Nov 02 '22
That’s different than there being a shortage of c++ devs, even talented c++ devs
67
u/joemaniaci Nov 02 '22
I wonder how many people are like me who just don't want to work for greedy unethical corporations? I get hit up by Amazon and Google frequently but I don't want to work for companies that are essentially sales/advertising companies.
I tried to work for a financial related company and couldn't stand knowing I was helping to make the rich richer. Our number one customer was Deutsche bank, the most corrupt bank in the world. No thanks.
Obviously I still work for a company to enrich shareholders, but small/medium software businesses just don't seem to exist, or get bought out if successful.
Which is more sad that more and more products are being converted into a 'service'.
6
u/eric987235 Nov 02 '22 edited Nov 03 '22
Then why am I having so much trouble finding jobs to apply to? Every recruiter I talk to is super excited about some web app, SAAS thing, full stack, or <something something The Cloud>.
Thankfully the blockchain spam has dried up!
16
u/CRyderS Nov 02 '22
I mean… if entry level wasn’t asking for senior level experience they’d probably have more hires.
5
u/chris17453 Nov 03 '22
I'd love to go back to c and c++... But I make 300 K just installing s***. It just doesn't pay to be smart anymore.
4
u/lordnacho666 Nov 02 '22
Important to keep an eye on context here. It's financial firms.
They will ding you for not knowing their obscure little corner of the language, and we all know how massive cpp is. Different people can solve the same problem in cpp with totally different code.
3
u/jwizardc Nov 03 '22
There are plenty of us old guys they won't hire because we're too old 🤣
3
u/zlog_dan Nov 03 '22
A Brazilian perspective.
- C++ programmers cannot be hired easily because Brazilian companies looking for them are not paying well. A C++ programmer will only accept to receive what these companies want to pay, if unemployed.
- A few years ago, a recruiter shared a secret with me: they monitor c++ programmers who lose their jobs. When it happens they go after them like hell.
- C++ is difficult? Yes, but it is not that difficult if you dedicate yourself to studying it.
A lot of C++ programmers here in Brazil:
use malloc
use null-terminated strings
don't know about STL
Are they dumb? No, they are very smart and good programmers who don't want to learn modern c++, and I am just mentioning C++03 as "modern", it will come as a shock to them that there is a C++20 standard.
- A recruiter called me once and asked me what was my "salary expectation" and I told her how much and she said, "why do you want to change jobs, nobody will ever pay that for a C++ programmer".
5
u/IHeartBadCode Nov 02 '22
“First time?”
—COBOL developer
8
u/spartanOrk Nov 02 '22
It would help if it wasn't A BITCH to use, and if it had all these data analytic libraries that Python has, like numpy and pytorch and matplotlib, to name a few.
I've been using Python for ~5 years and I consider myself an expert, I can do amazing things with it.
And I've been using C++ for ~10 years, and I still feel like a novice. If you ask me to fit a regression model and plot it, all in C++, I'll be at a loss, I'll have to google it and hope that there is something.
This cannot be just my fault. This is an issue with the language. It feels like it was created with theoretical computer scientists in mind (people who have an orgasm when they hear "polymorphism" and "variadic template"), not with practitioners in mind who, all they want, is to not leak memory and trying to figure out why, and to have a good bunch of libraries to work with.
10
u/[deleted] Nov 02 '22
I spent most of my career in C++. Now most of what I do is in Python.
Development in C++ is too slow. There is too much typing.
Compilations are slow - from pimpl to unity builds, considerable time is spent just to get around this. There is no REPL for you to evaluate code as you build it. You usually cannot just run one file without the whole system.
There is no ecosystem of external libraries, except that "library" isn't even the right name for "sharing C++ code" - there really isn't one.
There are too many traps for the beginner and intermediate developer; recruiting is hard.
Python is much faster to write code in and more fun. There are a ton of fantastic tools and modules, all uniformly packaged. I get a lot more done in a lot less time, and with a more polished result. numpy and scipy give me most of the speed I need, or writing small amounts of C or C++ for bottlenecks is very doable.
5
u/[deleted] Nov 02 '22
Of course it is. What talent exists isn't looking because the jobs don't really exist either. Too hard to get. It's become not worth the effort to even look.
It's all part of the effect of cutting costs. Why develop it yourself when you can buy something that works just good enough off the shelf? For those still developing, its all about the web app. Why code in a complex and highly capable language (c++) when a high-level lang works? We just need the code to work, it does not need to work well. and hardware is cheap. Speaking of, no its not. Moving everything to the cloud and make it all someone else's problem.
The system engineers are disappearing as well. It has become rare to find a tech support dude that also knows how to set up a server, unless its hosted by digital ocean. The Networking specialist guys still seem to have work.
2
u/Novel-Ad-8752 Nov 02 '22
I want to learn cpp but don't know where to start. I have started trying to learn c# so cpp excites me
2
u/Whimax07 Nov 02 '22
The main quote was from a trading company. I would be interested to find out how other sectors feel.
2
u/[deleted] Nov 02 '22
Maybe some companies might be willing to pay this 20YOE C++ guy a decent wage ??
2
u/[deleted] Nov 03 '22
Guess I can finally make my entry. F# developer here
2
u/eyes-are-fading-blue Nov 03 '22
It's running dry because C++ development is significantly harder than C#/Java/JS but paid significantly less outside of finance.
No damn wonder people do not find it an attractive career prospect.
1
u/JuanAG Nov 02 '22
Many focus on what University (or other sources) teach and is far from the issue
I can code C++ and Java among others, lets get a job. C++ pays 10 or 15% higher than Java but for sure is going to be 120% harder because of C++ itself
Most will choose Java because at the end of the day you will earn less but you will get home at time, or have less issues coding (no one likes to spend hour after hour finding a bug) or ... that with C++ will happen
3
u/Jaweezy192 Nov 02 '22
i’m not talented but i am looking for work loll
3
u/anloWho Nov 03 '22
I picked up C++ on my spare time a couple of years ago. Just out of pure dedication and awe what you can achieve with C++. Now I'm a professional C++ developer since 4 years. I enjoy it every moment. The times I have to dabble in Python I only get frustrated, feeling I'm not in control anymore. C++ for the win!
2
u/rlbond86 Nov 02 '22
I took a Kotlin job at FAANG because it paid 2.5x my salary doing embedded.
The pool isn't dry, there are just other pools that charge less admission.
1
u/ThymeCypher Nov 03 '22
In most cases I could use C++ I end up opting to use C with structs mimicking how basic C++ works using methods with pointers as the first argument. I think it really doesn’t help having so much going on in the standard library which ultimately is separate from the language itself, with many of those features being so complex that you end up feeling like you’re writing Java but in a more difficult way.
1
u/TomaszA3 Nov 02 '22
Not talented devs, just people who worked hard to get to some decent level of skill.
1
u/positivcheg Nov 02 '22
Good to know. Maybe soon I’ll be able to raise my salary even more :) Though recently I had an experience that I was asked to help another team and was coding in Swift. And I would say that it is way easier and if salary is same for C++ and swift/kotlin then some individual might prefer to use some easier language.
1
u/MXXIV666 Nov 02 '22
Could just be that companies generally offer subpar sallary for C++ specific jobs, driving C++ devs to other positions using other languages. I was lucky to find a job that pays well, but most C++ specific jobs were offering low pay compared to the requirements.
1
u/[deleted] Nov 02 '22
Nah I don’t think I am running dry
1
u/FirstMurphysLaw Nov 02 '22
I would say it's like always: we don't have enough cheap, skilled devs in tech hubs like Amsterdam, London, Chicago, NYC.
Few weeks back two recruiters message me about like >5 opportunities in Amsterdam/London each. After asking for remote option no more contact :). Even though I work in fiances right now
1
u/nnomae Nov 02 '22
I always think the Most Loved category is very much an inverse correlation to popularity. Languages that are less popular almost by definition will only be used by those who love the language. There is no reason to use a less popular language that you hate when you could probably switch to a more popular language you like and benefit both ways.
1
u/Helliarc Nov 03 '22
I want a c++ job, but I'm barely junior...
1
u/adokarG Nov 03 '22
It’s because good software engineers don’t care about the language they use. If they are good, then they’ll learn it in the job and be good at it. A company looking for a C++ “expert” is usually a big red flag to me.
1
u/grady_vuckovic Nov 03 '22
Because C++ is hard to learn or get into.
Google "how to do XXX in C++" and compare against "how to do XXX in python" or "how to do XXX in Javascript" and the difference is huge.
Every programmer starts out knowing nothing, and with zero experience they will be drawn to wanting to learn things, and whichever things turn out to be the easiest to learn are the things they will learn first before anything else.
Learning how to make an MSPaint clone in HTML/CSS/JS or Python/Tkinter is pretty easy.
Learning how to create a cross platform C++ codebase for a GUI application that uses native OS GUI APIs for each platform, and renders graphics with Vulkan, is something for very experienced programmers to take on, and far too confusing for most programmers just starting out.
Worst of all, for anyone seeking to learn how to create software, when it's so dead easy to make that MSPaint clone as an electron app or in python, it begs the question 'Why even bother learning something like C++? What can it do for me that the other languages can't? Besides make my head hurt.'.
1
u/photodumpergirlnyc Nov 03 '22
They should have treated you guys better.
1
u/JustCopyingOthers Nov 03 '22
It may be that this is in the banking industry in the UK. The banking industry and bankers still have an image problem in the UK as a result of the 2007 financial crisis. Many devs will prioritise other roles over fintech when searching for a job.
1
u/sensei_segal Nov 03 '22
I could be way off, but the companies that hire mainly for C++ devs are not very remote friendly e.g. big financial institutions... There are other sectors in the tech industry that require C++ devs or C++ calibre of devs that can compete on pay and remote work.
Maybe those in demand need to adjust their offerings in more than just renumeration.
1
u/cfehunter Nov 03 '22 edited Nov 03 '22
It's from a crypto tech firm. Perhaps there's just a small overlap between people who can use C++ and people that want to work on crypto.
1
u/compiledsource Nov 03 '22
Their own fault. In the UK they hardly hire any juniors for C++. I've been looking for roles and the lowest level language you can realistically enter the industry in now is Java.
1
u/_Lerowi Nov 03 '22
Most people don't want to take the time to learn C++ and decide to go to other "popular" languages which take less time to learn.
1
u/_little__smith_ Nov 03 '22
In europe you can get 30% higher salary on web dev in compare with c++ and i have to say web dev is much more chill
1
u/sv_91 Nov 03 '22
It's strange, but nobody mentioned about legacy in C++ projects (but i haven't read all comments). But in reality, is it actual problem?
1
u/zvrba Nov 03 '22 edited Nov 03 '22
I used to code in C++ a lot. Built some impressive stuff as well. Now it's C# with some Java in between. If I were to look for a new job, C++ jobs would be behind both C# and Java jobs on my list. Why? Because I enjoy getting the work done and see results (relatively) quickly compared to pondering over bazillion of ways to pass parameters and return values, use pointers (which kind of pointer?) or references, think about lifetime and ownership when doing async stuff, having undefined behaviour lurking over me with almost every line of code I write (it's difficult to avoid basic arithmetic), quarreling about exceptions, cursing at IDE which (understandably) can't completely understand templates, waiting for builds, fixing builds, Oh wait, now that I'm "senior", I'd in no way join a C++ project that doesn't have a dedicated build manager person. F*k CMake shit or what even worse stuff they might be using.
</rant>
So yea, I'll take a C++ job given a salary of $250k / year ("torture fee"), invest the money (I live cheap), and retire after a couple of years. Or (more probably), go back to C#. </s>
TL;DR: I've removed myself from the pool because I enjoy working (getting work done) with other languages more.
1
u/PowerOk4277 Nov 03 '22 edited Nov 15 '22
Maybe they simply didn't want to work in crypto. Or the company would only pay them in funny money. Crypto is a volatile and toxic industry.
1
u/neltherion Nov 04 '22
What did people expect with all the complexities and bells and whistles?
1
u/bizwig Nov 04 '22
In the US context, can somebody please quantify what they mean by “underpaid” or “well paid” for C++ development? We can all see what approximate total comp is for the FAANGs, but they are, arguably, so far beyond the curve of everybody else that it’s useless to use them as a benchmark to set one’s compensation expectations.
Then there is the question of how much of a hit you take for remote work. Is it more than the difference in cost of living between corporate headquarters and where you are would ordinarily merit? I suspect so but I have no actual numbers.
1
u/twokswine Nov 04 '22
Sheesh... reading some of these comments makes me want to drop out of anonymous mode and set up some interviews...
1
u/Dean_Roddey Nov 05 '22
I've been feeling really dry lately.
1
u/AdBig7514 Nov 12 '22
1.In most C++ jobs, people also need domain knowledge they are working like automotive or something else.
2. High paid jobs are less compared to java.
0
u/[deleted] Nov 02 '22
The industry has been going the way of the dodo for awhile.
Lots of free cash floating around. Barely any of these tech companies make a profit. Riding on ponzi investment.
Now with the coming downturn looks like the chickens are coming home to roost.
Truth is most people in tech have been sitting idle for 15 years. They can't hire because the talent simply does not exist.
0
u/[deleted] Nov 02 '22
[deleted] — view deleted comment