Lovely weather and cursing recursion

CodeCaraCodeCara
2 min read

THINGS I’VE WORKED ON/COMPLETED…

ISSUES I HAD…

API/Fetch practice - I did not really understand how then or catch worked intially. I played around with the code, which helped me to understand much better.

Recursion

Although I thought I knew what recursion was (the basic theory, at least), I had some trouble when it came to more abstract questions in the practice section. I could see what was going on in the easy ones e.g. factorial), but in some of the other examples,featuring arrays, nested objects etc. I literally had no idea where to begin at first. The approach seems to be to:

  • write pseudocode

  • translate to code

  • test that code using the debugger

  • …and not make assumptions about what the code is doing (i.e. test what you think it’s doing)

THINGS THAT WENT WELL…

I thought I had a relatively good understanding of promises, async and await by the time I got through the material - time will tell how well I understand them of course.

The weather app was a lot easier than I expected it to be and I finished it in a few hours. I really enjoyed this project.

THINGS I’VE LEARNT/NEED TO IMPROVE ON…

Catch errors only work in very specific circumstances (when there is a network error or an issue with fetch itself), so can be confusing.

Recursion

I did ask for some help with the tougher recursion questions, but I’ve realised again that asking for help too soon is not always best - I think asking too soon is a consequence of underestimating how long it should take to grasp these concepts.

Though I am still trying to finish the tougher questions, I don’t feel quite as lost as I did before. I keep reminding myself of the steps in recursion also - base case, recursive all and return to exit the recursive function somewhere.

OTHER…

I absolutely loved doing the weather app - I hope this is a good sign!

I am a little bit frustrated with recursion at the moment, simply because I am in the ‘trying to develop the skills to solve the problems’ phase, but I hope I will get there with some effort.

PLAN FOR THE UPCOMING WEEK…

Hard to say, as I have decided to take my time with recursion now. I would like to finish all the practice examples and move onto the Recursion project, though I may do additional practice exercises first - I haven’t decided that yet.

0
Subscribe to my newsletter

Read articles from CodeCara directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

CodeCara
CodeCara