>> I am an Engineer. In my profession, I take deep pride. To it, I owe solemn obligations.
>> As an engineer, I pledge to practice integrity and fair dealing, tolerance and respect, and to uphold devotion to the standards and dignity of my profession. I will always be conscious that my skill carries with it the obligation to serve humanity by making the best use of the Earth's precious wealth.
>> As an engineer, I shall participate in none but honest enterprises. When needed, my skill and knowledge shall be given, without reservation, for the public good. In the performance of duty, and in fidelity to my profession, I shall give my utmost.
Might be more realistic than imposed dogma, you never know.
>I also think we need engineers who do jobs that are ugly to preserve our freedom.
I think so too.
If you build something that can be used for evil purposes, some people along the line are going to have to judge how to build it, or whether or not to build it at all.
This seems like it would always require some moral judgment of some kind.
An engineer who plays an important technical role should not be removed from this type responsibility.
For instance, consider making weapons, some of which might be used offensively, others only defensively.
Some engineers would have no moral qualms against either type, others who are more selective, and others not willing at all. But regardless, coexistence is assured if it is accepted from the outset as an engineering goal.
These are really quite "different things for different people", triggering a different degree of uneasiness as different lines are crossed. All based on a moral foundation, incidentally whose goalposts can be moved whether anyone wants them to or not.
All could be valid depending on the situation, but a creed for the profession can help to better focus outcome, away from the direction of making things worse for humanity because of your efforts.
Experience has shown you really don't want people in key positions without a moral compass to guide their aspirations, and engineering can be important.