Software developers have never been professionals. Doctors, lawyers, accountants, chartered engineers are professionals. They have autonomy and obligations to a professional code of ethics that supersedes their responsibility to their employers.
Devs are hired goons at worst and skilled craftspeople at best, but never professionals.
There are, proportionally, more lawyers than software engineers in prison I would claim. Code of ethics doesn't really mean much.