What would you prefer? "I swear to uphold an ethical course of behavior as defined by the current zeitgeist of Hacker News"? It's clear that in delivering a sub-standard project, you're acting badly. But when you make a great product that may be used to harm others?
Many of the creators of the atom bomb have expressed their belief that they did the right thing. I agree with them and would have no ethical problems working on the nuclear stockpile. Many people, however, would consider that extremely bad.