3 ms·
I copy and paste from SO, but it's pretty rare that I can use the code as-is. Sometimes it's not even in the same language. My usual habit is to leave a link to
by analog31 5y ago
I copy and paste from SO, but it's pretty rare that I can use the code as-is. Sometimes it's not even in the same language. My usual habit is to leave a link to the web page in a comment. Sometimes the link is more valuable than the code itself because a SO thread will include differing opinions and good explanations.
- callamdelaney 5y agoI do this too, also to insightful comments occasionally. I like how you can grab a short link to a specific answer.
- davchana 5y agoI too, after coming back to a code snippet or logic, and struggling to understand why or how I used it, now everytime I get help from stack overflow, i put that answer's link in a comment just before the code or concept starts.