You're assuming that there are more programmers than jobs, but at least for now there appear to be many more jobs than programmers.
I'm sure these things can work in modern languages as well in theory. I might be able to mentor other programmers as well and manage them.
I went back to college to study business management to get a job with any business and combine it with my computer skills. I could do Excel or MS-Access work and VBA programming if I had to, but no company wants to hire me for a 9 to 5 job because I am mentally ill.
It's possible it was a misdiagnosis though. I think a lot of it was from anxiety and stress. I stopped taking medication in 2011 (against the advice of my doctor).
Stuff that used to be easy for me, got very hard to do. Everything changed when I became so mentally ill that I was disabled. Hard to understand.
I went back to college to take a business management degree and earned one. Thinking that I might do better as a manager. But since I have no experience as a manager, no luck in getting a job.
It is very hard to work on your own, and earn money. You need a team of people, you need investors, you need social and people skills. You need to market your product and SEO your website to get clients and customers.
I've worked on software projects that went nowhere because I couldn't get anyone interested in them.
I'm 47 now and figure my career is basically over. I could try Freelance after updating my skills to modern languages, build new projects and a portfolio, but I don't see the point when everyone else is doing that and there is a lot of competition.