{{ model.achievement.text }}

{{ model.achievement.points }} {{ $t('Shared','Points') }}

4 Keys to Learning to Code

Anyone who says coding is easy is lying. I am a calm person, but there are still times I get so frustrated when my code won't work that I almost scream! Thankfully, the constant excitement and thrill of bringing ideas to life more than make up for the difficulties. With that in mind, here are 4 tips to ensure you a pleasant journey as you learn to code (also known as major keys to success).

1. Practice, Practice, Practice

Malcom Gladwell said, "Practice isn't the thing you do once you're good, its the thing that makes you good". Simply watching videos and reading books wont make you a good coder. You need to practice writing code! Code Avengers lessons and projects give you all the practice and feedback you need to master the fundamentals of coding.

If a lesson is difficult the first time, we recommend you repeat it by clicking on the small arrow above the text instructions, then clicking the reset symbol next to the difficult lesson.

2. If You're Stuck . . . Take a Break

If you've tried everything and your code still doesn't work...take a 15 minute break. There's a very good chance that when you come back you'll find your mistake immediately. I know from experience this works!

When you're stuck, don't forget to use the hint buttons that appear next to each instruction, and to study the example code and video explanations.

3. Embrace Your Mistakes

As James Joyce said, "mistakes are the portals of discovery". Don't be afraid to explore and experiment, so you can learn from the mistakes you make along the way.

If at any time your code gets seriously messed up, you can always press the reset button to auto-magically clean your code up!

4. Google is Your Friend

Even after 10+ years of coding, you wont know everything. Thankfully there's someone who knows almost everything . . . Google! With the help of Google you can find the answers to many problems in tutorials, code references, and Q & A sites like stackoverflow.com. Code Avengers will unlock the skills you require to make effective use of the wealth of coding resources available for free on the web.

OK... enough reading... it's time for you to get back to coding, so you can...unleash your coding genius!

Click here to get back into learning!