Skip to content

codingforeveryone/learning-with-codewars-and-codecademy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

#Learning JavaScript with Codewars & Codecademy

Codecademy and Codewars are two fantastic resources for learning JavaScript. Whether you are looking to apply to Founders & Coders (in which case they are necessary) or just want to learn, completing Codecademy’s JavaScript course and then solving some katas on Codewars is a great learning route. Good as these resources are, if you are new to programming, they are not always 100% straightforward and can leave you confused. Here are some tips on what to do when you get stuck.

##Codecademy If you are completely new this the best place to start.

  1. If you are stuck re-read the info in the side panel (sounds obvious but I often forgot to do this).
  2. Check out the Q&A forum (click ‘Get Help’ in the bottom-right of the screen, select ‘I need help with this exercise’ and follow the link to the forum), people often have similar problems and there are a few bugs which can be picked up here. Warning: forum posts may contain spoilers.

##Codewars Once you have some basic knowledge of JavaScript, it’s time to start using your knowledge solving problems, or “kata”, on Codewars.

  1. The tips mentioned above for Codecademy are also useful here.
  2. You will start on Codewars at 8 kyu, or “rank 8”, the lowest of ranks, and by completing kata you will level up to the higher ranks. Kata are marked as suitable for particular kyu levels, so if you are at 6 kyu then 6 kyu kata are appropriate to your level, 5 kyu kata will be a stretch, and 2 kyu kata may be out of your league, for example.
  3. While you can get to kyu 5, the minimum level required for Founders & Coders, just by doing 8 kyu kata, this is an inefficient use of your time, not to mention completely against the spirit of Codewars! The most efficient way to rank up is to complete kata that are at or just above your own kyu level.
  4. The kata page offers a number of filters that will save you time:
  • Make sure to only work on ‘Approved’ kata, as you will not get credit for completing ‘Beta’ kata.
  • Sorting by ‘Positive Feedback’ is a great way to find the best kata on the site, those that are particularly challenging or well written.
  • You can filter for different difficulties and language features. Not so hot on your algorithms? Why not filter for some lower kyu ‘Algorithms’-tagged kata to practice on?
  • Remember to select ‘Kata I have not completed’ from the ‘Progress’ drop-down so you don’t see completed problems in the list.
  1. While the filtering tips above will save you from the most poorly written kata, and 99% of the time the issue will be with your code or with your understanding of the instructions, there may be some kata that contain bugs or were ported over to JavaScript incorrectly. Check the ‘Discourse’ tab to see if anyone else is having trouble with it. It should be clear pretty quickly if there are any bugs with the kata. Posts that contain spoilers are helpfully hidden!
  2. Write your own kata - Codewars gives you lots of credit for this.
  3. Once you have completed a kata and can see the solutions, compare yours to the top rated solution. Try to spend a little time studying the methods and approaches used in the top solutions, as this will help you understand other JavaScript methods and more elegant ways of solving problems.

##General tips

  • GOOGLE EVERYTHING. Seriously. If you’re stuck with a particular part of your code just search for the problem. The answer will be out there somewhere, it’s just a matter of formulating the correct question and using the correct terminology. Mozilla Developer Network (MDN) and Stack Overflow are great websites for this. w3schools is ok but a bit more basic. While it can be very tempting just to paste in code you’ve found, it always pays off to try to understand how it’s working – it will save you time later!
  • console.log() is an essential way to help you complete challenges. You’ll often need to see exactly which cases your code is failing at, or what the value of a variable is at any given stage. Remember you’ll need to hit the run tests or submit button to see the output displayed.
  • Use an online code editor like [repl.it] (https://repl.it/) to check your code is working, tweak your code and see if you can get it to behave the way you want.
  • For longer and more complex problems, try to break down the problem and write a solution using pseudo code (code in note form – it doesn’t need to run correctly or be syntactically correct).
  • Don’t be afraid of pen and paper, it can be invaluable in helping you understand challenging processes like recursion.

##Links [Ok, so you want to learn how to code.] (https://medium.com/@charlotteis/ok-so-you-want-to-learn-how-to-code-b74bc3ac6107)

About

Some handy tips for learning JavaScript with Codewars and Codecademy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages