A while ago I suggested that engineers could have an ethics code just like lawyers or doctors and the opinion wasn’t very popular (although with no explicitly stated reason). I still don’t see a reason not to have one. If your company is selling your code and software to abusive states and it’s used to persecute journalists (for example) continuing to do that work there is no different than any unethical work from a doctor or lawyer. And software developers have a huge impact on our life these days With their work. It’s reasonable to hold them to higher standards than in the past.