carojane @ Launch Academy

a coding challenge.

I Have Confidence in Me

This was a good week, because I really feel like I’m doing well. I am getting everything they throw at me, and the challenges are feeling almost easy at times. It’s dangerous, really, as I let myself get distracted and didn’t engage enough with my cohort. Part of that may have been a little burnout, so I’m glad that this weekend was a long weekend and that I took advantage of it by going home.

One cool thing happend on the way home. My dad picked me up at the train station in Albany and we drove the rest of the way, which was fun. We were listening to the Radio Lab podcast and they did a piece on numbers, mentioning the Fibonacci sequence. Math geeks that we are, we tried to recite the sequence, but didn’t very far. Having my laptop out, I wrote a quick program to output the fibonacci sequence up to a given didgit.

1
2
3
4
5
6
7
8
def fib(digit, array = [0, 1])
  array = array
  until array.length == digit
    next_digit = array[-1] + array[-2]
    array << next_digit
  end
  array
end

I ran fib(1000) and it spit out all 1000 numbers (or 999 plus 0). This is the second fibonacci program I have written - the other only spat out the digit given, and since it used regression, it was a slow running program past 24 digits. Of course, I’m not entirely sure how accurate the program is, since I don’t know off hand the 1000th digit in the fibonacci sequence. Still, I’m really proud that I’ve become a programmer without even noticing.

While I have this high-flying confidence, I’m still insanely aware of how much I don’t know. I still have to work on javaScript and jQuery, which has been a side project this week, and is not clicking as well as I would like. I also want to start reading some books on Ruby to advance my knowledge a bit more.

SQL was super easy for me - mostly because I have worked with databases before. Who knew stats and SPSS would be good preparation for coding? I just hope that the ease I felt last week doesn’t mean that I have missed something important.

It’s a new month and we’re like a quarter of the way through the program. Still feeling good.