For personal project there will not be a TDD so coder not willing to share their existing codes. I rather showcase my skills in a new development than say already done one.
Yeah, in our case the point isn't really the code, but how you reason around it. How able are you to explain the flow of the code. And also reason about choices made.
There is a real treasure trove of things to talk about.
Questions like:
- Why is it like Y?
- What is good and bad about Y?
- Why do you think X would be better?
- Why did you end up doing Y instead of X?
- How would you approach changing it to X?
Discussions like these on both a macro and micro level is very valuable.
The company I work for now has a similar approach. I showed a personal project and eventually got an offer. It's not even a particularly great one, as I had not worked on it in a couple years.
There is a real treasure trove of things to talk about.
Questions like: - Why is it like Y? - What is good and bad about Y? - Why do you think X would be better? - Why did you end up doing Y instead of X? - How would you approach changing it to X?
Discussions like these on both a macro and micro level is very valuable.