This is where the debate goes wrong. Being a decent person to women isn't some kind of personal sacrifice you need to make, it's a strict subset of being a decent person in general. If someone knows less than you about something, you should not mock that person or make them feel inferior, you should help them. That is the right thing to do, irrespective of the gender of the person you're dealing with.
We should think of programming as a large fellowship (the word 'community' is overused, but it would also work here). You meet another person who is interested enough in programming to get started, then that person is your brother or sister. You want to help them, partly because it's the right thing to do and partly because it is in our collective interest to do so. We don't need bad programmers out there, screwing up because nobody helped them, and we don't need to scare off the beginners before they've even had a chance to learn much. Sure, people should have their mistakes corrected just as a journalist might expect to have their typos corrected by a sub-editor, but there's no reason to do it in a harsh or critical way. Just be a nice person about it, it's really not so complicated.