Computer programming once had much better gender balance than it does today. What went wrong?

Perhaps these men are passionate about CS? Don’t we encourage our kids to pursue their passions?

Anyway, coding is only a small part of CS. CS is not about coding but solving problems computationally. AI, a branch of CS, will likely make many of the programming jobs themselves disappear. Some of those who pursue these programming jobs may become disappointed.