Med student here. Programmers don't have to take out 200K in loans. Also, when you do something like medicine, you're basically giving up a DECADE of you life before you actually start making the big bucks. Residents make less than the average programmer. Med students make negative $$. Debt compounds.
But seriously, if that's what you want, stop romanticizing and just do it. Though I have to say, do law school. Doctors that became doctors for the prestige and money are really the worst.