I'm quite sure of your skill level, purpose for learning and age but here's my best advice:

1) Write your code knowing someone else will read it. This means using comments to explain what you want your code to do so they can understand your though process. Even if no one else reads it, if you need to come back to it and if you've forgotten, your comments will save you. Write your code like an english paper. A little known secret is that...