I'm a software developer. When I apply for a job, one or both of the following things happens:
I am asked for some sample code or projects that I have worked on.
I am given a short coding exercise to complete to demonstrate my knowledge.
The problem is the only code I have for (1) is from previous applications that asked for (2).
Is there anything wrong with using old coding exercises for a previous application to show a different prospective employer?
Not really relevant but... I have other code samples from little projects I've done to teach myself new things. However, previous coding exercises are cleaner and more portable since I already wrote them to be shared and to show off my knowledge/skill as a developer. They just seem like a better choice.