I'd say the solution is to stop looking for a solution and worry about a problem that matters.
Not that there's 0 discrimination or that it doesn't matter that there is but we live in a heating planet where the US just elected Trump and people live on $1 a day.
And a significant fraction of all arguments on the internet are about why there are more male developers. And the honest truth is mostly that men are way more interested in being developers. It's like funny if it wasn't tragic.
Something like the apprenticeships you have in lot of trades.