Home About Me Blog Music

Problem Solving

25 Feb 2021

Problem solving is such an integral part of coding and in life in general too. I had considered myself pretty decent at problem solving. I love solving riddles, puzzles and playing problem solving games. But the past 2 weeks have really pushed me. Maybe because of the time constraints and the added pressure of this being a course that will determine the rest of my life or because the problems faced here are just more difficult than I have faced before. But either way, I was really challenged and sometimes I felt frustrated.

The problem solving techniques and processes were really helpful.

It is important to visit these techniques when facing a problem but also important to not get too frustrated when they don't work. Sometimes a problem that seems simple can baffle us and it takes stepping away from it for a while to solve it. When I was doing the Fizzbuzz kata, in the first part for the function where I wrote an if/else if argument, I had mistakenly used commas instead of semicolon. And this is something that I struggle with anyway. But for a long time I just couldn't find what was wrong with the code. I really had to leave it, go for a walk, come back and then it clicked.

For the second half of the same kata, again I was stuck and didn't know what was wrong with the code. I went on slack and asked some peers for help. And even though I didn't get the answer straight from them, just discussing the problem with them helped me in finding the issue and solving it quickly.