You learned 100 times more writing your own stuff. Everybody knows the infamous youtube tutorial in which the tutor states "And just paste this small bit of code here and essentially what this does is it makes the program work." This gives you nothing and you learn nothing. While it's okay to take a small bit of code if you understand what it does and it does it better than whatever you were doing it doesn't help taking the whole program and pasting it into an empty editor.