Give your career another 10 years, you’ll figure out that your power doesn’t come from the things you know or the company logo on the wall, it comes from understanding the world and how both you individually and the company you work for provide *usefulness* to that world. Not coolness, not newness, usefulness. Be useful yourself and it doesn’t matter if your company doesn’t want you anymore, others will. Work for useful companies, and you won’t have to face down massive layoffs because the thing you’re doing isn’t trendy anymore. Learn to think in terms of “how much will people really pay for this” and it becomes much easier to judge your work and your employer.