So there has been some noise around if there is a tech bubble or not. I am not arguing if there is one or not, nor interested in that discussion anymore.
If there is a tech bubble, how can I protect myself? That is the question.
I am developer who has worked mostly in small businesses and startups, with a master in computer engineering. I am not the best developer there is, but not a terrible one either.
Should I move to a larger company? Start my own company away from investment? Just save money and hope for the best?
Network (which really means just keep in touch with folks you have worked with or met).
At your current employment situation, keep your ear to the ground. You don't need to move to a big company (they have layoffs too) but you want to be aware of what is happening.
Ask your boss questions about the business, and do your own research too. If your company is "default dead" then ask how you can help make it "default alive".
Cut your unneeded expenses.
Start a company if you have the drive to so, don't worry about the macroeconomic climate.
Source: reading, living through the 2000 and 2008 recessions as a developer.