It wasn't my experience at all. The best software developers I've met were the nicest guys ever, no ego at all. The ones with big ego typically think very highly of themselves but are in fact mediocre developers. And their high ego often prevents them from working productively in a team resulting in negative value contribution.