Believe me, I've tried doing programming work during periods while watching our young son, and it is nigh impossible to do any heavy duty work unless he is sleeping. Writing one-line unit tests is doable. Debugging complicated code is just barely possible if you are lucky. Breaking new ground is downright impossible.
I suspect the author of the original post is not actually a mother...
When you have less time to hack, you tend to use it more efficiently (I've worked at home most of the time my youngest 2 were babies).
I can't imagine having had a nanny and missed out on all that bonding, fun, and awesomeness that is baby/toddlers.
(Not to mention things like my son puking up a full bottle of milk straight onto the keyboard of my laptop - I was feeding him and coding at the same time, which was probably a bad idea).
Of course, no nanny costs more than the most junior developer makes.
I'm not sure how toddler awesomeness is relevant to the discussion. Nobody's offering a free lunch. But there clearly are jackasses who don't want to hire women because they think maternity leave is going to screw them.
Insurers are freely able to discriminate, it seems like employers should be able to as well (I know in this age of political correctness it's impossible to).
Should terminally ill people be able to go on apprenticeships? I'd say on balance no - if they die before they're trained in the job, then the employer who is footing the bill of training them, has lost out.
Or at least, that's been the case with me, and with every new father I've ever worked with or known.
In a two-career household, you are expected to figure out how to allow both parents their careers. If the mom is the only one awake at night, you're doing it wrong.
But one main problem is when children are young mothers are much more likely to be tired or worn out running on little sleep and probably have less time/will to work on complicated problems