I've written before on appropriate dress for teachers and professors. I don't insist on a suit and tie for men, but slacks and a collared shirt on most days seems reasonable to me. Shorts and flip-flops are a definite non-starter with me. Similar level of dress for women.
That this site exists is evidence that I'm not alone in my beliefs. It's called, "Prof or Hobo".