freeCodeCamp/guide/english/miscellaneous/tips-for-your-coding/index.md

19 lines
1.5 KiB
Markdown

---
title: Tips for Your Coding
---
This list was created by compiling common issues and questions when working on the algorithm challenges, they should be helpful in general.
1. If you don't know where to start, write some pseudocode. Plan out the logic you're trying to implement in your native language before you try to put it into code.
2. Comment your code! Can't stress that one enough, if you get lost or take a break then come back you need to know what your code is trying to do. It will also reinforce what the code means to you, and help other people understand what your code does if you get stuck and ask for help. If you've got a any other tips for campers I'd love to see them!
3. Use the chrome javascript debugger console in conjunction with something like the netbeans IDE or sublime text to write your code. Both are free to download. The freeCodeCamp code editor is great but you can get a lot more feedback on your code's behaviour by using chrome's JS debugger and a bunch of **console.log(myVariableGoesHere);**
4. Use your resources. Stack overflow is your friend, and so is Google. However, don't limit yourself to just non-human resources. Sometimes talking about your code to a real person is enough to get you back on track, or spur some new ideas.
References
* <a href='https://developer.chrome.com/devtools/docs/console' target='_blank' rel='nofollow'>Chrome Console</a>
* <a href='http://www.sublimetext.com/' target='_blank' rel='nofollow'>Sublime Text</a>
* <a href='https://netbeans.org/downloads/' target='_blank' rel='nofollow'>Netbeans</a>