How to use prompt to be a good coder

I want to know how to be a coder using ChatGPT. So, kindly help me by prompting me to extract codes. It is really helpful for a developer.