DEV Community

loading...

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

Collapse
dean profile image
Dean Bassett

I do. Mainly for stuff like an efficient implementation of quick sort. I already know how it works, but the partition step can sometimes take too much time to write on my own (which spots do I swap in what case? When do I advance my index? Which index do I advance? Etc)

I usually just grab an implementation from StackOverflow and properly credit the author and put a link to the answer in the functions documentation.

Forem Open with the Forem app