I have a regular job and a consulting job.
When I took the consulting job, it was with
a small company that teaches accountants and
lawyers. So you KNOW they are good at CYA.
They handed me a doc that said they owned anything
I coded for them. I told them if that was true,
I could not use my 15 years of accumulated libraries.
They were afraid of me walking and taking the code.
So I granted them perpetual license to use, while
I maintained ownership.