The Adjustment


Learning new ways to think and problem solve

30 Days of Vanilla Javascript (Day 17 - 24)

During the past couple of weeks I have been reading and thinking a lot about habits and habits versus will power. This all ties into goals, priorities, and productivity. When I started the Javascript30 course I wanted to form a new habit and I was able to stick to one lesson a day for twelve days in a row! Daily situations changed for the two weeks after that and I have found myself scrambling to make up multiple lessons in a day. As I write this I am several days behind. After the momemtum and consistency of those first twelve days it feels like a failure to not complete one lesson a day for thirty days, but I decided to take a wider view of the situation. I considered where this goal and habit of one lesson per day fit among the many long term and short term priorities as well as my desire to develop good habits. When I look back on the days that I didn’t do the lessons, I am able to see that there were other priorities and accomplishments that were more important. The goal of this course is to improve my Javascript skills and I am still on track to do that. As I balance competing priorities over the next week I will see if I can complete the 30 lessons in 30 consecutive days or if I will adjust the habit to meet the goal and all the other goals I am excited to work towards.


30 Days of Vanilla Javascript (Days 11 - 16)

These are my daily notes while going through Wes Bos’s Javascript30 class.


30 Days of Vanilla Javascript (Days 3 - 10)

These are my daily notes for week two while going through Wes Bos’s Javascript30 class.


30 days of Vanilla Javascript (Days 1 - 2)

I’ve become comfortable building React web applications, but decided that to be a better developer I need to sharpen my Vanilla Javascript skills. Several software engineers have recommended Wes Boss’s Javascript30 course and I started it Friday, January 3, 2020 with the Javascript Drum Kit project. To help retain knowledge from the projects, I am recording three ideas from each project in a weekly blog post until I complete all 30.


Rails Scopes

One feature of Rails are scopes for models as a way to return specific objects that meet certain criteria. It uses the ActiveRecord query interface so raw SQL statements are not written. Class methods can also be used, but one difference is that a class method can cause a NoMethodError if it is chained with other methods and a conditional evaluate to false. A scope will always return an ActiveRecord::Relation object.