The business cycle with devs is that we get treated like shit on the downturn and then we get rockstar treatment on the come-up. Every downturn is treated like the apocalypse and every come-up is treated like we're going to be permanent gods in the office.
This is speculation, but I think this dynamic comes from the fact that every company worth a shit needs to have a couple of us, we're absolutely necessary, but the kind of people actually good at this sort of work tend to be abrasive spergs, so they'd really prefer us to just fuck off. When we're not useful they want to basically just get rid of us, but when we are useful, we're so necessary that it's untenable to pretend otherwise, and past bitterness provokes showboating.