I started this list while doing Algorithms, noticing a few things that were common issues / questions but I think most of them are going to be useful to people coding in general. If you’ve got some tips to help people code I’d love to hear them.
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.
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!
Then your code on the next lines, followed by a final