I am a PhD student, working on Applied Math while my wife is a software engineer. I plan on going to academia after PhD and will start to job hunt soon.
A few weeks ago, I thought of an idea that hadn't been done before. I wrote a crude C++ code to implement the idea and it worked well. I believed that with my theoretical understanding of the problem and an expert coder, we could make something really impactful and incidentally, my wife knew how to. So, we spent some evenings together writing the code (she didn't know math, but I abstracted each step so she could help implement). The resulting code is fairly sophisticated and does an excellent job. I was wondering, now that I write a paper about it, would it look weird if my wife was listed as a co-author? Her contributions were definitely sufficient to warrant co-authorship by any definition.
Let's step aside the legalese of it (my advisor doesn't care and her company might but let's leave that aside). I am asking more from the standpoint of how it looks on one's CV, job application and possibly, tenure.