Software Developers in the US commonly work for hire, so the code they write, even outside of work, may be the property of their employers. This depends a bit on state law.