Honestly? Just master data structures, get competing offers at FB and Google, make 350-400k a year, invest heavily and aggressively, retire in 7 or 8 years
I keep hearing salaries mentioned like this and I'm sure some developers make this but I really don't think the average developer is making this at these companies, based on salary comparison websites, etc. A developer who makes this, I'm assuming, would be working in machine learning / quasi-AI type of stuff and that is probably not the type of job you're going to get right out of college unless you have a PHD. I can't imagine any reason Facebook would pay this to devs for run of the mill dev roles when it's clearly so far above market rate.
You joke about that, but I had a friend who interviewed for a developer Evangelist role at Google, and literally the only stuff that they were asked was algorithms questions.
Yeah, it was a 50% technical role, but Google didn't care about the OTHER 50% of the job at all...