If you're an engineer working for Google, I think you can most likely afford to be an idealist, and in my opinion that's a much better option than just blindly following orders.
Don't most of us want less war? Does it really drive you to enhance the capabilities of those committing acts of violence? How does one start to believe that by supporting the military you are somehow working towards a better world?
If you're not going to be an idealist, then in all likelihood you're helping to work towards the vision of an idealist with more power than you.