graphql-ruby
is almost two years old! Today, I’m adding a new element to the project, GraphQL::Pro
.
Raising Exceptions is Bad
In general, raising exceptions for control flow makes code hard to understand. However, there are other cases when an exception is the right choice.
GraphQL Query as a State Machine
State machines are applied to a wide variety of programming problems. I found it useful to think of a GraphQL query as a state machine.
Hash#key? vs Hash#[]
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.