Sometimes it doesn't matter how hard you work, your going to get laid off either way.
Just showing up can sometimes make the difference.
Your not paid to be a software developer. Your being paid to be a problem solver.
You gotta speak to people where they're at, in words they're willing to hear, and make them feel like you give a shit about what's happening to them.
When you see an opportunity to help without hindering your ability to do your duties, offer. If someone asks for help, try to find a way or apologize that you can't.
Your professional instincts don't impact policy unless you can prove that they're correct.
A good leader takes the blame for their followers and passes the credit forward.
Maintain a nice professional barrier. Your coworkers don't need to know everything about your life. And when people start engaging in shop talk the only white collar person there should be acutely aware of the fact that we're held to higher professional standards of general conduct.