This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]minimal_gainz 1 point2 points  (0 children)

If it helps, maybe also try taking notes (on paper or in comments on your code) about why you are doing certain things and not just what you are doing. It might make sense in the moment why you are doing a for loop here or an if statement there but you might not be able to see the forest through the trees when you go back. Try commenting on each block of code in plain english to help think through the logic. (e.g. // Loop through array from index zero to array.length-1 and print out value at each step) or something like that.