The Christian practice of communion is a reminder of why Jesus is important and how his life affects us. To see the full depth of it, you have to consider pre-Christian religion.
Authorization in GraphQL
A GraphQL system works differently from a “traditional” RESTful JSON API. Instead of authenticating during controller actions, you can authenticate users with “query context.”
Making Ginger Ale
I had leftover whey after making yogurt, so I made ginger ale.
Making Yogurt
This weekend I tried making yogurt. It worked!
Response to "Using a Ruby Class to Write Functional Code"
Pat Shaughnessy’s “Using a Ruby Class to Write Functional Code” gives an example of bringing functional programming principles into object-oriented design. I like it.
Move ActiveRecord Scopes into Separate Files
Ruby on Rails models tend to grow and grow. When refactoring scopes, it turns out you can move them into their own classes.
Building up vs Building out
While adding a big feature to PCO Check-Ins, I was struck with this way of describing my approach to adding complexity to the system.
Debugging: Behavior & Purpose
To resolve a bug, a developer must know the behavior and the purpose of the program at hand. I’ve been reading Lesslie Newbingin and it made me think of this.
Happy Refactoring by Keeping ApplicationController to a Minimum
Extending ActionController::Base
once, in ApplicationController
, is a great Ruby on Rails practice. However, if ApplicationController
is your only abstract controller, it’s likely to become a maintenance challenge. To avoid this, you should extend ApplicationController
as needed and move as much code as possible into its subclasses.
Defining mruby Methods with C
You can use C code to prepare methods for mruby scripts.