why not? judging someone's ability based on what they wear is straight-up anencephalic
It's about being taken seriously, you don't dress in a panda suit for a clown job. You have to agree that some jobs require certain 'uniforms'. I think it's entirely up to the employer to decide dress code as long as it's not loveist or offensive. If my boss wanted to fire me because I don't wear the right colour shirt I don't think that's ridiculous as long as it was agreed upon. So like Red Spy says if you're applying for a position that has some type of 'uniform' dress code then dress the part for the interview too.