Sarah's Spiels

A journey of learning

Problem solving during the learning process

Blocked on a problem

This week I have really noticed the limits of both my current knowledge and my ability to recall things I thought I already knew! It's been a challenging week with lots to learn and I definitely felt blocked a number of times.

One of the main things that stumped me this week was figuring out how to put things together. During the gradebook kata at one point I had a function that found all the student names and put them into the book and another that picked up all the scores. But I couldn't figure out how to add the scores to the book as well when the students names were being pulled in by the other function.

To work through the problem I used a few techniques. I started off by using pseudocode to map out what I wanted the function to do. Then I just gave it a try. As I went through I console logged to check that what I thought was happening was actually happening. Then I moved on to google. I used google to try and search for how to tackle parts of the code that weren't working rather than the full solution.

After all my attempts I still could not wrap my head around how to solve the problem, until the daily kata tutorial covered it. I was amazed how simple the tutorial made it, and I spent a bit of time working to understand exactly what the code was doing. At this point I realised that the way I had approached the problem was on the right track, but also that I'd attempted the solve it by jumping straight to the stretch challenge, and I could have hard coded the values in to start with.

Despite that, I was happy that I had approached it in that way because it made me feel like I was making something functional, rather then just ticking boxes on a test. Earlier during the kata's I worried that I was solving for the answer and that I wouldn't reach a true understanding of the code that way, but this challenge made me feel much better about this way of learning.

An elegant solution

I'm not too sure I've ever solved a problem elegantly! I feel like I fumbled my way through most of this weeks challenges. I did feel very confident in solving the FizzBuzz half of the superfizz buzz kata, although I found the second half difficult.

Problem solving techniques

I definitely lean more on some problem solving techniques than others - I really like to try and figure things out myself and sometimes find it difficult to ask for help. With that in mind my feelings on the problem solving tools are: