One of our computer science teachers said that back in the 70s the computer science classes were full of women. Of course, at that time they didn't actually use computers very much... Then came the generation that grew up playing (and coding) on C-64 and the gender ratio changed drastically.