The first thing that I learned was to structure my code so that when I come back after a long break I would still be able to understand it. I also learned that GitHub could be a great way to share code but the repo should be well documented so that new users can easily start using the repo. I always debug code to check whether everything is working great.