The biggest headcount of a company I've worked in tech with is 60, most of whom were not in IT. The other tech companies are all 10-20 people, including part-timers. Only one company I worked for sold to Fortune 500 - ironically this one had the shabbiest dress of all.
Three of those companies had lawyers - they all dressed in suit-with-optional-tie. As did their visitors (visitors rarely optioned out of the tie) and the lawyers I'd talk to from other companies (admittedly a rare occurrence). Apart from the medical sales at the waterfall place and finance staff, I rarely see a suit jacket in the neat casual dress of other staff (IT or otherwise).
I realise this is all anecdata, but at the same time, the 'neckbeard and t-shirt' idiom is a grossly incorrect stereotype.
I respect that you've had a different set of experiences and drawn different conclusions, but respectfully: I think I'm just going to be hard to convince otherwise on these points, and having a message board slapfight over which jobs wear more ties --- I can visualize myself trying to Google my way to a survey answer to this question now --- shudder --- just seems like a terrible use of our time.
And yes, this isn't a debate that should send either of us a-searching :)
Meanwhile: if you select down to consulting software developers, particularly those working at major (500+ headcount) firms selling to Fortune 500 companies, you're going to find that they don't dress like the stereotypical software developer either. Those consultants are the CS equivalent of BigLaw lawyers.