I just came across this answer.
Quality issues aside, I was considering leaving a nagging comment about answering a question with an external link is not acceptable.
However...
Despite linking to the code externally, the answer does contain a reasonable explanation of what the code does.
Should this new user be nudged a bit, or is this form of answer perfectly acceptable.