I agree with that. Some programmers do copy and paste code from different sites, play with it and then get it to work. If you can write your own code in the first place then you get better at it-it continually improves you. . . .
You have to approach programming in the right way. Its all very well cutting and pasting the code as long as you understand what it does. If you dont know what the code does(the code which you are cutting and pasting) then how do you know if it works? It is far better to read code samples and understand what they do. Importantly, read subject areas and understand what they do.
Lets imagine you want to encrypt a file in . NET and you didnt know what encryption did. Would you just copy the code from a site?
Nobody knows the entire . NET Framework so you would use the MSDN and search for encryption discussions and code samples, understand what it does and then write it. Thats why you are a programmer. . .
When you do this then a senior programmer could ask you and you could happily explain. If you approach programming this way then this will help you in your task which might be a bit more advanced. . .
Great site and its nice to talk programming with other people. I teach C#,VB, Java and I know SQL as well so a nice set of skills.
Good one friend. Thank you for posting.
I would like to add one point:
Do not make a habit of copy pasting the ready made code, instead try writing your own. You will learn a lot from this.