I would like to change employment. As part of the application process the new prospective employer would like me to provide a code sample. I cannot provide any of my work as that is proprietary and/or trade secret. Also there are onerous restrictions in my current contract (some of my work is subject to the Official Secrets Act) which says that my employer owns the IP of any works created outside of my employment.
Should I submit work that I have working on in private in my own studies to my the new prospective employer, and should I inform my current employer that I am doing so or should I keep this secret from him?
My employer doesn't have any right to know that I am looking around. The only right that he has to know that I am leaving is when I provide written notice.