@HaveringWavering ? Nobody says that someone newly qualified can do everything. The point is that there's a structured learning and qualifying process. Exactly the same in accounting and law. perhaps accounting is different as they do the papers while working, lawyers don't *obvioulsy a solicitor isn't the same as a barrisyer etc' but the principle is exactly the same. Get training contract, get relevant work experience.
There's no such thing for tech. 10 different people will give you 10 different paths. A lot move into things that have nothing to do with their current jobs, no 'experience/working with experienced people', just self-learning, contributing to open source etc.
The REASON why this is relevant ? People want an easy answer. They want someone to say 'do this,then you can earn 100K and will be much in demand'. This is in fact the original question in the OP, and the number one question I get asked after years in industry.
It doesn't work that way. The more you know, the more different paths unfold, and it's really hard to decide which to follow. Most self-taught start as web devs because that's what most bootcamps are for. But after that... continue to specialise in whatever language they learnt? Become full stack? Move to backend, infrastructure, cybersecurity? There's no guarantee. And different companies want different skills, and there are a thousand clickbait articles saying 'learn this and make 100K', ignoring the fact that the '100K' people's package of skills got them the job, not that one thing on the ad. Adding to the confusion.
Anyway you may continue to reply saying 'but lawyers can do niche things do', or something to that effect. But I doubt that it'd add much value to the discussion... as the point isn't that really