Some advice I give to newcomers working in the software industry: Don't assume the job lasts forever. Think like an entrepreneur. Have an expiration date, always have many months of savings in the bank, and plan for what happens after (not if) you get let go.
Stay friendly with as many people you can outside your company. Write and speak about your work often in public, and open source whatever you can. Many coworkers will be friendly with you until the very microsecond you quit or get let go. Coworker relationships are brittle.
Build your own personal brand because that's what will get you that next gig. In my career I've seen coworkers go from working well together to visibly hating each other once everyone was told they would be laid off in a few months.
Don't let your company become your "Corporate Tribe". If all you do every day is obsess over company politics, or who at your company is doing what, you are looking way too inwards. You are likely setting yourself up for extremely disillusionment when you're laid off.
If you think this way, then when hammer comes down and you are out of a job, you'll be OK. You'll have savings, connections outside your company, a public personal brand, and a healthier mental outlook.
You can follow @richgel999.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: