Finding the time to finish day 2 took me a few sessions over the next few days, but I’ve finally wrapped it up. The lessons continued with writing our own classes. This started with a simple tree example which I ended up getting a little carried away with extending. After that came mixins. These seem to deal with multiple inheritance issues that .net uses interfaces for, but Ruby includes implementation, which is nice. The chapter finished with a bit more general data manipulation.
The self study section starts with finding stuff again, but where day 1 was “find the docs” this is more focused on learning more about topics that we’ve touched in this chapter so I had to pay more attention to the content that I found.
It then moved to the exercises again. This time it felt a bit more like being thrown in at the deep end, requiring more googling and experimentation. This continued the theme of working harder to get more out of it, which is not without merit. The first set of exercise mentioned that there’d be answers at the back of the book, but this is not the case. Whilst with coding there is generally not a single correct answer, at this stage in my learning of the language I’d like to see what is considered to be a good solution to compare against mine. There are aspects of my code where I feel that I may be missing a better approach, but it does what I expect of it, so it can’t be tooooo bad.
Finding the time to get all the way through this chapter was tricky. However, this has a lot to do with the fact that I want to be at my computer to fiddle with the samples rather than just reading the book on my commute or something. That would have let me blast through things a goodly chunk faster but I’m trying to get the most out of it, so I’m happy with the progress I’m making through it.
No comments:
Post a Comment