Links to documentation in comments?

by Julio Sánchez Campoamor   Last Updated May 15, 2018 19:05 PM

I sometimes put a link to the site where I copied a chunk of code from in case I forget what it does. Is this a bad practice? Should I copy the explanation from the site instead of linking to it?

Tags : comments

Related Questions

Clean Code comments vs class documentation

Updated June 04, 2015 11:02 AM

How much commenting is better for coding?

Updated April 29, 2016 08:02 AM