12

I needed a good way to validate a password check through angelorjs. I wasn't completely satisfied with the answers of this question since it didn't explain the problem very well.

Later I found this blog post that was a good read about it. I adding it up in an answer in case other people were having the same issue. I referenced to the blog post and mentioned his name as well.

Since I always hate it when there's an possibly good answer with a broken link I added the solution on his blog post as well. In the end I mentioned the credit goes to the author. Is this good practice or should I remove it?

4
  • 1
    That is perfect.
    – juergen d
    Sep 25 '13 at 6:36
  • 1
    @hjpotter92 Not really a duplicate of that - this is the inverse situation! - but that topic is certainly very relevant here. Sep 25 '13 at 6:43
  • 2
    @hjpotter92 i indeed saw that one but since it was about putting a link without code and nothing about citing guidelines i didn't thought it to be applicable to this situation.
    – Michael
    Sep 25 '13 at 6:51
9

This is perfectly good practice. You did everything right:

  • You provided actual useful code in your answer.
  • Not being the original author, you cited the code source.
  • You did not simply link to code elsewhere that, as you say, could have just become a broken link.
  • Hopefully, the code you provided also works and is useful to others trying to find out about this. I trust that's the case here.
  • You came here to share your knowledge on an issue to benefit others in the future!
1
  • thanks for the reassurance :) I wasn't really sure of it.
    – Michael
    Sep 25 '13 at 6:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .