That’s terrible advice. You’re assuming all the world is identical to Silicon Valley and its startup culture of bashing things with open source rocks instead of just buying a proprietary power tool.
Outside of that pond, there is a giant ocean of developers that work in enterprise and make a perfectly respectable income.