In reply to Tai.

This falls under "work for hire" anything you generate, unless you have an agreement that explicitly says otherwise, belongs by law to the person which hired you. So yes, the implication is that when you use the same code for different projects one of them might end up being sued for copyright infringement.

You can retain the knowledge and reuse it, but not the code.