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!
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.
A GraphQL system works differently from a “traditional” RESTful JSON API. Instead of authenticating during controller actions, you can authenticate users with “query context.”
I had leftover whey after making yogurt, so I made ginger ale.
This weekend I tried making yogurt. It worked!
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.
Ruby on Rails models tend to grow and grow. When refactoring scopes, it turns out you can move them into their own classes.
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.
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.
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.
You can use C code to prepare methods for mruby scripts.