I'm sorry to hear that and hope that you'll find more confidence in yourself with time. It helped tremendously for me to have personal passion for software development to pursue and excel in while building confidence and respect. I still have days where doubts creep in, but they're managable. Once I realized that nobody is as calm and self-assured as they appear it made it easier to deal with my own fears.
Yes, I think a passion for the field and a desire to do better to help others make computers the Ted Nelson be-whatever-you-want-it-to-be machine, rather than get bogged down in the layers of "computers just do it this way" crap, helped quite a bit in my pursuit of work matters.
There is also a very interesting, if broken, social element to developing software that I've been more curious about lately. I've heard it described as "the compiler doesn't judge, it only cares about what is correct," and that's why a number of transgender folk I know have stuck with it in various capacities.
However, that statement about the compiler is not quite accurate. There still lie a number of problems, between the people who make this software, and a need to cooperate with other people to learn about the layers we build on and build better things. Those remain unresolved, and make it difficult to get mutual, beneficial progress done. It's one big reason why Apple, a company that reigns in as much control over every element they can, has been alarmingly successful in recent years.
There are more trans-specific issues in software and hardware, but I don't have enough data on hand to make solid conclusions about that. At the moment, I'm an observer and a participant.