My guess is that it is entitled "The programmer's wife" because the author is male and his spouse is female.
Then shouldn't it be "A programmer's wife"?
"The", as an article, is applied to individuals in all sorts of situations. If, for instance, I say "The apple is red," I'm probably not making an assertion that should be generalized to all apples, but rather speaking about a specific one.
He says "She knows about as much as you’d expect an optometrist wife of a programmer to know about computers", but are we supposed to expect something different from an optometrist husband of a programmer?
There should be more links about programming and science at Hacker News, not some heterosexual male programmer's anecdotes about his wife, with a title which suggests that there is a pattern among the behaviour of wives of programmers.