Funny. Being a newer-bie into the tech world, this arena has so much more to offer than just straight coding, which I think is like learning a language - as intelligent as learning French, Spanish, or any other. And more crafting the code to produce an awesome product - front end or back end is pretty thrilling. Especially for people who like instant gratification, which includes lawyers, teachers, and others in non-boring and dull communities.
But alas, the only way attract more females (and of the box ones, too) is to have those in the world. Like attracts like - a universal axiom.