Recently when I was checking one question at SO I found that one user has answered the question with a link to an article which presents an answer to this question.
After some minutes another user has posted an answer by copy-pasting code and a example from that same link (That user has also included a link to the article in his answer, and that's a good thing).
Now which one is better?
The link is good because if the user updates that article you get an updated answer automatically on SO.
The copied code is good for two reasons :
- Users can directly see it and review it (Sometimes they are too lazy to check links) and so you get up/down votes more quickly.
- If somehow the link breaks in future, SO will still have the answer.
What do you think?