You're missing the point there: if someone's looking for code samples, they're already learning to code.
I agree totally, not only would it be good for him but it sets a good example for his constituency (because as a basic competence it is good for anyone).