Because she was always debugging him!
Why Cant I have a Girlfriend Who is a Better Programmer than Me
He also liked to code for hours, but never compile
He was a bit of a git.
And when he was working on a project with a girl, he would always be a bit "assembly-line" in his approach