Webpacker and Tree Shaking Fontawesome
Adding all of Fontawesome to your rails project will cause your application.js to balloon. Here is how to configure tree shaking to just include the icons you are actually going to use
Bulma on Rails
Bulma is an incredible frame work that works beautifully with Rails. It's trivial to setup so here's how
TIL: Asserting Exceptions with Cucumber & Ruby
Proper use of Cucumber follows a strict given-when-then syntax. This posses a small problem when trying to assert an exception in a 'then' step if it is raised in a 'when' step.
TIL: Counting Consecutive Items in a Ruby Array
I wanted to know how many times a thing occurs consecutively in array. Only consecutive items are important
TIL: Ruby Splat Operator Builds Arrays
You can use the splat operator to coerce values into arrays
TIL: Denaturing Ruby Array to get the Last Element and Remainder
Assigning the first element and the remainder of an array to a variable is common, but you can also do the same in reverse
Inline Bundler for Ruby Scripts
You can write a simple Ruby script which includes in-line bundler and so avoids the need to have a separate Gemfile.
TIL: Finding the Source of a Ruby Method
Find out where the source of a method is defined
TIL: Lambda Composition in Ruby
Joining lambdas together for fun and profit