An apprentice goes to a coding bootcamp, paid for by an company with a $2,500/month stipend. Then, the apprentice would work for the company for $2,500/month for one year, or otherwise the coding bootcamp tuition must be repaid.
This would work out to a cost of about $55,000 for a year of labor.
That would be significantly cheaper than hiring a coding bootcamp grad, and removes the economic risk from the apprentice. What if the market were to soften? What if they ended up being one of the graduates that could not land a job?
This offloads a lot of training to the bootcamp, which have job training as their core competency. Other commenters have pointed out flaws with the system proposed by the author.
In addition, it generally aligns incentives so that the apprentice is less likely to leave right after the initial training. As part of the deal, the coding bootcamp would help the apprentice with finding some other job, since they have already committed to an employer. If they did renege on that part of the deal, the employer only lost out on $7,500. And once the apprentice proves their worth (in the event that they do), the employer could offer a market salary that would start after the apprenticeship, along with a signing bonus of about $20,000 or so. The apprentice would probably want that signing bonus immediately, and sign that offer unless the candidate disliked the company.
If anyone wants to kickstart this concept, I think this would make a great nonprofit. Figuring how to implement such a program would be a distraction for the company, especially if they just wanted to dip their toes in the water with one apprentice at first. The nonprofit would get $10,000 per apprentice, and additional donations by companies could lead to higher priority in selecting potential apprentices.