I'm in my last semester of my master's program. One of my professors asked me if I was interested in pursuing PhD. I like to write code and learn to build software rather than learning from theory. I like the idea of research, and I know if I pursue PhD focusing on ML, I will be able to learn a lot and break into the ML/AI industry much easier than my current state. I'm only worried about not being able to earn substantially for the next 4-5 years until I complete the PhD and join the industry. Given the current state of IT market, and also being an international student who eventually wants to remain in the US, I feel, PhD might be the right choice. Can someone help me evaluate the pros and cons.
Edit:
Some additional context that I think I should have mentioned. I love the idea of pursuing PhD. I have always liked research work. I'm not considering it only as an alternative. I just don't like the idea of a prolonged study while not able to earn as much during the same period.
The main question that I am trying to answer is: Will a PhD help me in the long run? How valuable is it compared to having work experience during the same time?
In a vacuum, my recommendation would be to get work experience and not do the PhD. There's a huge opportunity cost, and I believe the number of jobs that require a PhD will continue to drop in the next 10-20 years.
Some roles today are harder to get without a PhD, but you can still get them if you work enough, and I truly believe the importance of higher education as a job criteria is diminishing.
The reason to do it is if (1) you want to be an academic, (2) you have a deep passion for a specific area and you want the freedom to explore it, or (3) you have very poor job prospects after the masters degree.
A PhD will definitely help you in the long-run. The question is more around opportunity cost and your preferences. Here's a breakdown of reasons for and against:
When it comes to higher education, there is an immigration angle as well, but I unfortunately can't comment there as I was born in the US.
Overall, I think PhD is generally a weaker option in software specifically given its more pragmatic nature and blistering innovative pace. But again, it's about what makes you happy. If you love research and you have an incredible thesis in mind, go for it! Having a PhD is also a general signal of "I am smart" (I just assume anyone with a PhD is smarter than I am 😁). But don't go into a PhD believing that it'll unlock insanely senior engineering levels or top pay "for free".