I have seen this exact thing happen in a company I used to work for. It was the catalyst that made me look for another job.
I'm not saying this is the case with Twitter, I don't know anything about Twitter as a company.
This probably doesn't happen in smaller startups, but I've worked in several medium and large size companies and have seen it happen.
It doesn't matter if you're getting along with your coworkers, they aren't the ones making the layoff decisions.
Those engineers are usually fairly vocal about obstacles. Managers should learn to interpret this signal, suss out the root cause (usually easy) and eliminate it (usually hard).
Twitter might actually be better served by promoting some set of the folks that landed on the cut list.
Well in this case it maybe what happened. They are eliminating the root cause -- the actors ;-)
Basically always think twice and watch your back. HR is not your friend to confide in, being disgruntled and pointing to issues need to be done carefully. In an irrational organization it will backfire -- you are labeled as a disgruntled trouble-maker.
They might have written some of the best code in a feature that management doesn't want anymore (Twitter API anyone?) but that doesn't necessarily translate in being part of those that are kept.
Maybe the dev lived in a town where they are closing the whole office and relocation is too much $$$ compared to a package. Maybe she just hasn't been with Twitter long enough to shine outside of her immediate team (who're all being cut). Maybe the folks drawing up lists had to make some concessions to keep some of their friends employed (consciously or otherwise.)
Maybe they had some stock options or something they were holding onto??
As a logical exercise, if we assign some risk to your employer terminating you (I imagine especially for publicly traded companies one could come up with some more-accurate-than-guess-formula), then there would be a point at which the risk of your current employer would outweigh the risk of leaving to find another job. Or, another way, the risk-reward between two different jobs could be measured (e.g. working at risky Startup X vs stable Retail Bank Y).
Links welcome!
http://www.stern.nyu.edu/sites/default/files/assets/document... "Estimating the Probability of Bankruptcy"
One of the things companies do when growth stops and they want to increase profits is lay people off (it's kinda a classic MBA move).
Case in point - Target's acquisition of the Zellers leases on their locations.
I had over a dozen people I know who were offered pretty lucrative jobs there. I know another half dozen who balked at their offers (including myself). The people who went were only there about 6 months. Right away, there were signs this was doomed.
For several months all I heard and read was stories about how this was not going very well at all. Two of my friends who took jobs started looking as rumors swept through their departments. They both found employment in short order, right before the roof collapsed and Target announced over 1,700 layoffs.
If you decided to wait it out, you were now entering a market were you had a lot of competition for your same job at any number of businesses in the area. Thus, reducing the likelihood of finding something quickly. I have several friends who still haven't found a job six months later.
I went through the first dot com bust with two startups. Because of that scary experience, I've always been leery of my continuing employment anywhere. I'm become somewhat adept at reading signs and realizing when something is about to go tits up. As such, I interview constantly, and always have an exit strategy for any position I take, whether its a perm gig or a contract gig. I constantly look over my shoulder and its served me well.
Of the people I knew well when I worked there, the more talented ambitious has been gone for 6 months already.