DEV Community

Discussion on: How did you get out of the habit of copying/pasting code?

Collapse
 
awilliams17 profile image
Austin Williams

I disagree that copying and pasting code is a bad thing.

There's copying and pasting code mindlessly, and there's doing it smart.

When I copy and paste something, I always make sure to check over it to make sure the quality is up to my standards (don't look at my recent project pls ;-;) and then I make sure it fits seamlessly into my project.

I think it's bad to rely too much on copying and pasting code, but for certain patterns or problems why reinvent the wheel?