Session 1

Take home excercise

Write a small program that generates (i.e. prints) the Fibonacci Series up to some arbitrary limit.

This is as close as I could get to solving it:

let Count = 0;
let Value = 1;
let NewValue;
while (Count < 150) {
console.log(Count);
NewValue = Count + Value;
Count = Value;
Value = NewValue;
}
// Noticed that where i place my console.log matters,
// Finding it difficult to explain to myself out loud - it's the way the program runs that is
// Didn't realise that I could declare a variable but not assign it a value
//

I found this first task incredibly hard. I just tried to complete it again after Session 3 and still couldn't solve it on my own.

I think i'm still struggling with the 'mental model' side of learning to program. I think this is for a couple of reasons:

  1. Only being exposed to a small amount of the language has left me wondering "which tool for the job?" If I come up to a problem and i've not solved something similar before, i'm scrabbling to find a "new tool".

  2. My inability to effectively break down the problem into steps. This second statement is probably what's going to take me from 'capable googler' to 'actual programmer'.