So I went and worked in finance instead.
Obviously some people make weapons so not everyone believes they have the same obligations.
So what's wrong with it?
First, things I work on are sold to both sides, in my case to a country well known to shit on human rights... And a few GUI/feature tweak later it's sold to another more respectful one.
Also, in a more general way, the main purpose of it is to kill or fear peoples, peoples with different/unaccepted ideas, peoples who disagree with the weapons owner.
Does it sound right to you?
Of course it's approved by the government, but it sounds way more like a money driven decision than a smart one. And when I ask people how they feel about it, nobody cares, typical responses:
"We are not working on a weapon, we are working on --any subsystem that doesn't sounds like a weapon--"
"I'm not the one who sell it!"
So it's nobodies fault, like during the WW2, "I'm just driving the train, I have nothing to do with deportation"
And what happens when the conquering despot is my country (Dick Cheney's team)
Imagine if worldwide knowledge of science regressed to 1900 levels. Imagine if worldwide engineering capabilities regressed to 1900 levels. Imagine if worldwide educational opportunities regressed to 1900 levels. We would consider any of these things to be disastrous.
Now imagine if worldwide weapons technology regressed to 1900 levels... that doesn't really seem all that bad, does it. You could even come up with a strong argument for it being a good thing.
Investing money and effort into making weapons is the literal definition of an arms race. A zero-sum game. If everyone does it, everyone loses. This would obviously never happen but if every single engineer in the world refused to work on developing new weapons, the world would be a better place tomorrow.
Regarding Google: They work on a ton of products that genuinely make the world a better place. Gmail, google search, google news etc etc. That does give the company as a whole a halo.
Regarding Facebook: I somewhat agree with you that social media in general is overrated, but many others do genuinely believe that it improves their quality of life. I may not buy it myself, but Facebook can make a strong case for how they are making the world a better place by better connecting people.
You seem to be saying that we should rather limit the number of scientists than pay for the ones we can train.
The amount of money is mostly outside of the control of science, but encouraging students to become professional scientists when you know there is no funding to employ them at the end of their training is immoral. Until the funding situation changes then we need to stop misleading students about what to expect.
This is still an open question. At least in biomedical sciences, there's been an explosion in the number of PhDs awarded. Biomedical postdocs get paid ~$40k/year on average, and it's increasingly likely they'll be stuck in that position for 10+ years (or you'll leave for a non-science job). I luckily won't have to go through that, but most of my friends are.
An alternative is produce less, better paid, better trained scientists.
Even if you manage to grab the brass ring and get tenure after 15 to 20 years of low paid study, this is hardly secure. If you fail to bring in large amounts of grant funding you will soon find yourself on your own in the basement broom closet or made redundant in the next departmental reshuffle.
This isn't obvious to me. What if that was everyone?
A world where everyone approached problems with a scientific mindset would be one I would love to live in.