Coding is exactly like learning a language and since I speak 4 languages, I’m hoping to polish my coding skills quickly. Trial and error is key. Practice. Don’t be afraid to make mistakes. Sometimes you might even want to make mistakes on purpose just to see what errors you will get.
- Understand the task
- Start with what you know in Main
- Debug as you go along
- Build your code little by little
- Document your code
Coding is also like writing a story. Other programmers should be able to look at your code and know what you are trying to do. Practice the jargon so you can communicate concisely with other programmers. Towards the end of the initial learning phase, coding will become more and more a team effort and communication will be essential.