I did not say a gun was pointing at the girls to force them to program. If low female population in the tech sector is due to the lack of resource and the stereotyped masculine geek image, then how does inviting girls to an all-girl programming class help them in the long run?
If we want to minimize stereotype, and if the stereotype has to do with gender, then we need to educate both genders. This means bring in female speakers to educate and show to both the boys and the girls what they do as software engineer or as a mechanical engineer. The same resource we offer to girls can be offered to boys.
Because the popular culture has associated geek with a masculine image, a lot of girls don't think they are capable of or should be involved. Is mixed gender event less powerful than single-gender event? To some extent yes. For the beginning, the girls may feel comfortable with their own gender. But later on? First time working with a guy on a hackathon project? I am not shy, but if you ask me to work with a female for the first time, I probably end up being shy and careful.
but you don't want to put any effort into thinking or learning about gender
What do I need to know about gender? What is special there that I am not aware of?
In reality, people think differently about themselves. Some people think they are more capable than others. The best we can hope is that we can give each other a chance to show what they can do, to bust the myth that guys are better.