There are many ways to improve your skills as a developer. Here are a few suggestions that may help you become a better developer:
Practice, pract...
For further actions, you may consider blocking this person and/or reporting abuse
I have only one rule to follow: Don't copy and paste code for the purposes of implementing the functionality elsewhere. Basically, be a DRY advocate.
By forbidding yourself from the cancer that is copying and pasting, you start learning clever ways of organizing code, i. e. design patterns. This alone will skyrocket your programming abilities.