I hold that the hostility is not really contingent on how good you are, but rather on perceived weakness. Most programmers intentionally try to make others feel and look incompetent, while trying themselves to come off like badasses. Partly a matter of being socially inept, partly of a macho culture in the field. And it's only aggravated when you have those programmers interviewing candidates... This is independent of ability - there are plenty of morons calling themselves A-players. You have to play that game or you will be seen as weak and torn apart.
That is NOT a good thing. For example, it is actively driving women who are interested in computers and good at programming away from the industry. Who wants to deal with the boys' club?