Part of what got me into computers and programming was computer games.
I started with just messing around with config files for games, and proceeded to creating character editor programs for Diablo II.
Gaming is a male-dominated area (see how many female pro-gamers there are in Starcraft, for example, and compareto the number of men that are pro-gamers). Somehow, the gaming scene is very much oriented towards men.
The question is, is there a biological reason why females are not as much into gaming, or is it a society problem?
Are females raised in an environment, where men are considered more childish, and therefore it is considered ok to be a gamer, while females are supposed to be mature?
In my opinion, learning to do programming is about letting your inner child loose, and explore unknown terrirory. Boys are encouraged to play when they are young, while girls are supposed to be well-behaved and well-developed. Certainly, this has some advantages for girls, as it seems like interaction with other people are encouraged more, and women are more common in such occupations, while boys seems to be allowed a wider range of games, where more "childish" aspects are allowed.