Technical Blog 4

My brain might be fried but I'm too stubborn to realise

Getting blocked on a simple problem

Rephrase the question please. When WASN'T I blocked on a #simple problem. I feel like learning to code is a bit like lighting a fire in a cave where the fire is your knowledge of coding and the cave is what you still need to learn. You work really hard on adding kindling to the fire to stoke it up, and eventually over time it starts to get a little bigger. The only problem being that the brighter your fire gets the more you you can see how massive the cave is.

One problem in particular I was getting stuck on was in the gradebook challenge where I needed to average an array. I knew how to do the maths but I was really struggling with how to put it into practice.

Solving a problem in an elegant way

Queue .reduce(). Can I get a hallelujah?? This little bugger gave me one of those eurika moments when you have to jump up from your desk and have a little boogie. And I must say I've had quite a few of those moments while working on javaScript. Yeah my neighbours may not appreciate the "awww heeeell yeah's" that come bursting out of my window at 11.30 at night but hey, gotta celebrate your successes right :)?

My feelings when confronted with a problem

In a word, volatile. I'm not sure why but sometimes I'm totally cool with being confronted with a problem while other times I find myself getting frustrated. "That code I've written makes sense, I can talk through it, it's logical, why aren't you working!?!?". 3 hours later.... "WHO PUT THAT SEMICOLON AT THE END OF THAT OBJECT VALUE!?".

Spoiler alert: I did.

Problem solving techniques