loading...

Discussion on: Do you copy and paste code from Stack Overflow?

Collapse
lietux profile image
Janne "Lietu" Enberg

I generally try to look up answers on Stack Overflow more for guidelines and implementation possibilities. Once I see how someone else has implemented it, I usually get ideas on how to do it myself.

There are certain solutions, e.g. various Python decorator patterns etc. that are really not worth reproducing myself and copy & paste will work just fine. I tend to paste a permalink to the answer it's from in source code comments when I do that.

I wouldn't want anyone in my teams copy & pasting code into our repository without understanding the code, and it's implications.