My theory about why programming became masculinized is the emergence of the hacker myth.
A hacker doesn’t just type variables and functions. He goes to war.
And if there’s anything men like, it’s going to war without the inconvenience of injury, disability, and death.