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.
An above average salary in most common cases is interchangeable with 'living within means'. You can start with whatever little you have and grow.
Its really not about how small you start, its about how quickly and consistently you are making an attempt to grow.
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".
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.
It's definitely true that doctors make more money over the long run, but if by year 20 (~age 40), the difference is only about 2 years' extra salary, a lot of people would say it's not worth the stress.