I totally agree that the cruise lines should enforce their own dress codes. Not just on formal nights. The cruise lines give you plenty of dining options.
Its all about common courtesy to your host(the cruise line & its staff- who have to take the time and make the effort to wear the appropriate uniforms), and to your fellow passengers. Simple really.