Finished Ruby Mastery and Koans
I came in on Day 7 determined to get Chapter 9 done. I had comparatively flown through the first 8, so this was really annoying me. I decided I should start again.
However I didn’t start again from scratch, I know which parts of my code worked, and I knew that they had no effect on the code that didn’t, or if they did, where I would potentially need to change them. So I kept the framework of those bits of code in, to make myself feel better about the day before that I had wasted. I spoke to one of the other apprentices who had done it, to see how her method differed from mine. She hadn’t used a hash, but rather a longer if formula. I knew that the hash had been my problem before but I thought I could make it work, hearing this though I knew I would have to work without it. Once I started down the new path, I had got it working and passed the tests in about an hour. It really was so much easier than I had made it out to be, I was so relieved it was done, but also annoyed at myself for dragging it out so much.
Oh well, I have learned my lesson from that!
Chapter 10 was hard, but compared to what I went through with 9, it was nothing. I managed to finish that off before the afternoon. Here is the finalised repo from the Ruby Mastery quizzes.
After finishing the Ruby Mastery stuff, I moved on to looking at Ruby Koans. Koans is a bunch of helpful files that walks you through all the different things in Ruby. You download the files, run the first ruby file and follow the instructions. It does walk you through mostly, theres only a couple of challenges in it, but its good for getting to know Ruby a bit more.
