My rudimentary calculation shows you need to save ~50k in the first year, get 4% raises, keep expenses constant, and get a 5% return. Bonuses, options, etc are on top of that. Also, you could get step-raises in the middle for bigger promotions. And, you could marry someone doing the same thing and get there faster.
The market really is this good.
Let's assume the "big" guys (Google, Facebook, etc.) regularly pay average total compensation around $250k, so that patio11's remark is correct. So what? As many employees as they employ, they represent a small fraction of the number of people who are very well qualified programmers and engineers. Their salaries are by no means common. The market is good, but it's not that good.