My job does pay my bills and put food on the table but is certainly less glamorous than something which changes the lives of millions of people (though in some way it might). It is definitively inoffensive.
Adding a line of code to a killing machine. That is something else my friend.
People feel much better having some distance from cruelty, that's why they prefer to eat meat from animals that were tortured their whole life and then killed, but somewhere else where your don't see it happening.
Eh, this is a bit of a straw man, no? It's one thing to be liked by everyone. It's another for a (presumably) long time, close friend to say they can no longer respect you due to your decisions.
In this case, it's someone who is already making a lot of money, who could make even more by working for a company that builds AI killing machines. Telling that person they are making a serious mistake is doing them a favor. Wouldn't you want your friends to do the same for you?