A round up of my second week in a Northcoders bootcamp.
The course will at first introduce us to a concepts peripherals, and then re-visit the concept with a little more detail. I’m becoming a fan of this, although the content is full-on I have faith that the course is guiding us in a way to build up our knowledge without suffering burn out.
What we covered this week…
MONDAY: Test driven design & Jest
We were introduced to Test driven design or TDD, and testing with Jest. I can say I am a huge fan of both. If you are just learning as I am, I would definitely say to look into installing Jest!
TUESDAY: Dry & Pure functions. Scope & Hoisting.
DRY and Pure. Pure functions will not mutate the input and the input will always return the same output (which fits in perfectly with learning TDD) The concept of DRY is the idea that when writing code you don’t repeat yourself.
WEDNESDAY: Values vs Reference.
A variable that stores an object is accessed by reference, its own place in memory.
Sigh. This is what this weeks lectures have been leading to. Closures, easier to explain than to put into practice with TDD. I am so very pleased that this has been introduced to us so early in the course so we can consciously use them through the remainder of the bootcamp. I would advise anyone learning about closures to just write the code. Just keep writing code.
Closures give you access to an outer functions scope from an inner function.
To use a closure, you would need a function inside another function and return it or pass it to another function.
I am so very pleased that this has been introduced to us so early in the course so we can consciously use them through the remainder of the bootcamp.
Thoughts on this week
This week has been extremely full on. Every day felt like there was not enough time to accomplish what I wanted to do in a day. The concepts introduced this week have really stretched my brain, but by Friday I could write a TDD. Install jest and I could write a function that had a closure. Next week I can only get better.
If you go into this bootcamp you HAVE to be prepared to keep picking yourself up when you hit a wall. The concepts are hard, but everything is hard at the beginning. Keep going.
The key takeaway from this week is that rest is your best friend. There is no shame in taking an extra 10 mins away from the screen to absorb information, especially when the weeks start to get intense.