Becoming a doctor, for example, is a lot longer than 3-4 years and is going to involve a lot more debt. Also if you want to be a doctor you have no choice but to do all of that formal education and pay the huge sums. If you want to learn software development you can do so for free (excluding time but that is true of all learning). All you need is a computer and an internet connection. All of the software you need can be free, there are loads of excellent free resources and even the non-free things like books are not very expensive.
I know people many people who learnt to code in their own time for ~6 months and landed a decent first job. Over the next couple of years they learnt a lot more and now have great jobs earning within 20% of what a doctor usually earns however they don't have the debt and saved a few years of their lives as well.
Not saying everyone can do this and become a software developer but it is very possible. I don't have a degree, I had to leave school at 16 (I am now 32) and worked in a shop to get by. I self-taught and now I earn a few £ under £100k making software. I have a super comfy life. I have zero debt (well a mortgage but no other debt), a nice house, family, a fair amount in savings, etc. Honestly I couldn't ask for more especially considering the rather small investment I put into getting this lifestyle.
I know people many people who learnt to code in their own time for ~6 months and landed a decent first job. Over the next couple of years they learnt a lot more and now have great jobs earning within 20% of what a doctor usually earns however they don't have the debt and saved a few years of their lives as well.
Not saying everyone can do this and become a software developer but it is very possible. I don't have a degree, I had to leave school at 16 (I am now 32) and worked in a shop to get by. I self-taught and now I earn a few £ under £100k making software. I have a super comfy life. I have zero debt (well a mortgage but no other debt), a nice house, family, a fair amount in savings, etc. Honestly I couldn't ask for more especially considering the rather small investment I put into getting this lifestyle.