The consequence of poor decision making in a Professional Engineering setting that we were most often warned against was ejection from the profession. If your work results in the loss of life or property, you may find yourself unable to continue working in the field due to loss of license or a steep increase in insurance premiums.
As a software "engineer", the consequences for poor professionalism are not as sharply defined.