Other than V&A, those "codes" are merely suggestions on how they would PREFER you dress. They aren't rules and are not enforced. Shorts and T's and jeans will still get you in places like California Grill, Yachtsman, etc.
The only true prohibitions are swimsuits and tank tops on men. And even the tank top thing isn't always enforced.