The lesson to take from the big layoffs at Twitter and Facebook is this: "The job will never love you back." No matter how much effort you put in, no matter how clever you are, no matter how long you've committed yourself to $COMPANY, when push comes to shove, you're just a replaceable part in the machine.

Keep your weekends and your evenings. Leave your bugs at work. Your time is for you, and your boss won't send you flowers.

@saramg I so much do not agree with this.
It's not because this boss in this company doesn't care, that others don't.
For all of us (both employees and employers), we are stuck in the same boat, and we are riding the same waves.
A boss is the captain, and sometimes also the owner of the ship. It's a captains duty to take care of everyone aboard. And good captains do.
Chose wisely which boat you hop on.
@saramg @jowouters I don't feel like that metaphor fully applies here. If it did, then it would follow that some captains, in some circumstances, would have a duty to throw crew members overboard in order to save the ship.