I read that Hash#key?
was slower than Hash#[]
and it made me sad because, shouldn’t Hash#key?
generally require less work?
Parameterized styles with React, Rails and Sprockets
css_modules
provides an approach to styling UI components in a local-first way.
Trip Report: RubyConf Colombia 2016
I just got back from RubyConf Colombia. The content was great, the community was great, and the venue was great!
Summer Reading: Specializing Ruby
Specialising Dynamic Techniques for Implementing the Ruby Programming Language (“Specializing Ruby”) is approachable and enjoyable (despite being a PhD thesis 😝).
Finding a Browser-Ready File for Sprockets
I like using Sprockets, but sometimes it’s hard to find a file to include in the asset pipeline. Here are some methods I use to find browser-ready JavaScript files.
How I Use Sprockets
When reviewing issues for react-rails
, I see many questions about how to gather JavaScript dependencies with Sprockets. Here is how I use Sprockets to manage JavaScript dependencies.
Ruby Class, meet Elixir Module
Elixir modules offer some valuable insight into designing Ruby classes.
Using GraphQL without Relay
How many assertions per test case?
This question is too hard. Instead, ask, “how many behaviors per test case?” and answer, “one.”
Crystal First Impressions
The Crystal programming language combines Ruby-like syntax with a really powerful compiler. As a result, it’s fun to write, fast to run, and hard to screw up!