Another pro is we don't have a big gap in salaries being more or less well paid (in Germany).
The drawbacks are that you are quite limited in scope, you don't learn something new outside of your programming domain. The mindsets are pretty similar: sometimes I think my wife is too logical, and we have a similar way of thinking after many years in the profession, which can be a bit boring.
I'd say in general it helps the relationship, but it does not come without pitfalls.
Dating someone in the same field gives greater likelihood of finding that, but there's other ways to do it too. People who went to similar schools, people in related fields, people who hang out at similar social events...
Your work is one field where you can find overlap, but there's lots of others. My fiancé works in a completely different field, but we have similar preferences in how we spend our spare time. I'd have never met her if I restricted myself to programmers (she's in conservation and events; an odd mix to say the least).
Rationally I would never pick somebody from the same field as me.
seeing people dying and suffering will change you, especially the young ones. a lot of those stories is not something you actually want to listen to after hard day at work...
Speak for yourself..
It gets boring even when your occupations are so alien to each other, that there's little you can share beyond bog-standard office gossip.
My fiance works in a t-shirt printing shop and I work as a developer. I enjoy hearing about his work, he enjoys hearing about mine but we know neither of us could do what the other does.