Daily blog
It was a good day in the coding world of Seth. I started out completing a decent size lab in the ActiveRecord section. Then headed off to the Free Code Camp Nashville meetup. It was a great meetup where Jason Gresalfi presented on how he had created a Chrome extension. The repo for his extentsion can be found here and you can find it in the Chrome webstore here. It’s amazing how “simple” chrome extensions can be.
I started Active Record tonight and I’m stoked. Mostly because a lot of the work has already been done and now I can just use the magic that is provided to me. I think I have always had the basic understanding that there are libraries that will be doing a lot of the things I have been learning for me. That is why when I get stuck on things but can still complete projects and labs I just push through.
Almost 3 hours of review vidoes watched tonight. On thing that I think can be very useful to all. A double bang !! converts an object to it’s truthy value. For example:
seth@seth-u:~$ irb 2.4.0 :001 > 1 => 1 2.4.0 :002 > !1 => false 2.4.0 :003 > !!1 => true So the return value of 1 is 1 we know 1 has a boolean value of true. So !
Tonight I had my CLI Gem Project review with one of the instructors. It was pretty cool. I talked through my project from start to almost finish (I realized after we finished we never went over the last method that takes user input to either start over or end). We added another class and refactored some code to make my gen more extensible and flexible in the future. While they’re not official tasks I set a couple new features I want to add to the gem.
Tonight I was able to get much deeper into the ORM section. The curriculum returned to the lesson then lab format that is more familiar. Learn how to build a few methods and why you build them that way. Then immediately do it locally. Then the next lesson builds on the last. This is much easier to make progress through and I feel much better about databases now. Well, I feel much better about how they integrate and how Ruby wraps them.