If the deal is making money there are better ways than even coding, you better off working a job in Gulf, or learning something like stock trading well. Coding just happens to be placeholder for a range of jobs that pay well currently.
>>A doctor needs a decade of effort to make anything similar.
MBBS is just a basic diploma. In the first 50% academic time of MBBS they just teach you how a healthy body works, because often the biggest confusion in treating a patient is to know what's is normal and what is a disease. This is followed by a assorted set of courses which touch upon basic disease-cure scenarios. And some small introduction to chemicals and their side effects on biology.
These people basically spend something like 7 years just to get here. MD is a different deal in India. Because the academics aren't really all that great and its just a detailed introduction into some organ speciality for just 2 years. Most people even here just go by established clinical practices in hospitals(a.k.a cya work)
In all the actual training is just 3 years. Its not an engineers fault that their profession is just trivia, and if-else scenarios for the most most part. This is where the resentment part comes in. Most engineers, or atleast the serious ones which make good salaries have gone too far both intellectually and in productivity in those 10 years.
The vast majority of doctors in India work in their own private clinics earning little money, treating small time fevers and stomach aches because that is the maximum you can do with that kind of training. You will be shocked just how far behind they are generally in the knowledge. Most will struggle to give you basic fitness and nutrition advice.