DEV Community

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

Collapse
 
jsrn profile image
James

I mostly find myself checking Stack Overflow when I want the idiomatic way to do something.

A lot of the time if it's just a one or two liner that I can understand easily, yeah, I'll just copy and paste it, but for larger bits of code, I think you are doing yourself a disservice if you just snap up the code without understanding it fully. After all, you presumably don't get to be the kind of developer who can answer questions on SO by copying and pasting everything.

That said, deadlines and stress have pushed me to do a few horrendous copy/paste jobs in my time. I try not to make a habit of it.