Let's be honest here. It's hard to define respect, but an overwhelming majority of parents would rather have their daughter marry a lawyer or a doctor, than a programmer. That right there gives you a strong indicator of society's take on the issue. I'm not arguing that programmers get no respect (they do pretty well among non-prestigious trades). I'm arguing that programmers are not perceived as belonging to the same professional elite that lawyers and doctors belong to.