Self confidence won't prevent you from being treated like a sex object by your peers at conferences. It won't do anything to resolve the issue that women are judged more heavily on past accomplishments where men are judged for their potential. It's great that confidence has worked for you, but this is a dangerous message to spread to the people erecting the barriers to begin with.
It feels more empowering to pretend gender doesn't matter, but eventually there will be a situation where it does and the truth will matter in how you deal with it.
Might as well feel empowered the other 99% of the time.
This argument that knowledge makes you fearful is a terrible argument and a total projection. Why do you assume that my acknowledging the existence of sexism means I feel disempowered? That's just weird. I see the sky; it's blue; I go about my day. I see sexism; it's there; I go about my day. I see poverty on the bus, war in Syria when I read the news, and climate change when I go hiking in the woods. Sucky things are true and suck. Your idea that they must lead to fear and disempowerment is certainly not universal. It's part of the human condition to see sucky and unfair things and then grapple with those truths. It's what life on earth is about. Avoiding knowledge is also what some humans do, but I don't see how that's to be celebrated.
I've encountered various barriers, and I've encountered some of the same barriers more than once when my tactics to overcome them have failed. Ceasing to acknowledge that they're there doesn't mean that I'm sitting around somewhere paralyzed with worry. Throwing away all knowledge of what's failed, what's worked for other people, and so on and so forth and replacing it with More Self Confidence! however, I suspect would ultimately be just as ineffective as puttering around as a defeated emotional mess.
Maybe it's helped her that she's a product designer rather than a developer. That's the sort of career that we get mistaken as having. Maybe living in the Bay area helps. Either way, the article is a very simplistic view that realistically is tactic number one for many of us when we start to realize in first year computer science what we've gotten ourselves into. It doesn't take long at all for it to be clearly apparent that it's not going to be enough.