I don't know biology but I took a 6 week class on plastic surgery.....
The coding equivalent of doctors training would be a) taking a general bachelor's degree b) taking a 4 year computer science degree c) specific training in programming in 24 different languages and 400 frameworks d) get a job programming in Java and eventually forgetting most of the other stuff.
I realize this is somewhat the resident model, but it seems like there's room to expand that, decrease costs, and provide a job opportunity for people who are fine accepting a lower salary and stopping their medical training at that point.
Having had a few friends go through medical school, I absolutely have compassion for their side of the equation. They go into extensive debt (yes, usually with good loan terms) on the promise of "if you make it, then you'll be able to repay this / have the debt forgiven." But it doesn't seem like there's any "I don't want to go all the way" escape route.