LOL, only if by "investment decisions" you mean "luck into a 1 out of 1000 unicorn startup". I don't know a single programmer retired in their 30s who did it with salary and retail investing.
1. If you are a programmer who can make an above-average salary immediate upon graduating; and
2. If you are able to save an above average amount of that salary; and
3. If you are exceptionally good at traditional investment decisions (stock picking) such that you can consistently beat the market; and
4. You actually decide to use the money from #2 for #3
Then it's possible to retire after a sub-20 year career. In the same sense that it's possible to win the lottery multiple times. Each of the first three points are by definition exceedingly rare as single traits of any one person, let alone all three together.
I've never seen someone with any background in or knowledge of retail investment suggest that anyone start with less than $5,000. That seems to be about the minimum, especially if you're picking stocks where you're almost guaranteed to under-perform the market in the long term.
Even if its not that. It still doesn't mean - "Blows entire salary to smithereens'. Basic knowledge of savings and investments will put you ahead of bulk of the crowd out there.
As an Indian, I don't know much about the US market. But you guys still have index funds, Roth IRA, IRA and real estate to invest in.
In India even cab drivers who made bad real estate decisions have typically reaped X00% returns. People who made intelligent decisions are already retired. Many programmers in early 90's and even 2000's I know are already make big money in rents. And of course that doesn't mean every body did that.
When it comes to savings and investment there really is a binary crowd that I've seen. The first crowd says its just not possible and doesn't even try, the other crowd tries and some how makes it to be known as those "1 in 1000".
You cannot start taking penalty-free distributions from an IRA until you're 59.5 years old. So that's definitely not the way to retire in your 30s.
I've found people who boldly claim you can invest your way to early retirement always speak in vague generalities, and never have specific advice to offer. "Just be smart" and "pick the right funds" but if you press them on exactly what to do with, for example, $1000 in investable income a month in order to retire in 20 years with $5000 a month in income, they tend to come up short on details.
1. If you are a programmer who can make an above-average salary immediate upon graduating; and
2. If you are able to save an above average amount of that salary; and
3. If you are exceptionally good at traditional investment decisions (stock picking) such that you can consistently beat the market; and
4. You actually decide to use the money from #2 for #3
Then it's possible to retire after a sub-20 year career. In the same sense that it's possible to win the lottery multiple times. Each of the first three points are by definition exceedingly rare as single traits of any one person, let alone all three together.