Brian Kephart

Brian Kephart @briankephart

About: I play guitar and bass. Sometimes I code.

Location:
Kansas City
Joined:
Sep 15, 2017

Brian Kephart
articles - 14 total

Rendering Views through Action Cable with Devise and CanCanCan

This week I worked on rendering partials over websockets with Action Cable. I ran into a problem that...

Learn More 6 0Aug 26 '20

Collection Caching in Rails with Local Variables

Yesterday I was trying to improve the performance of collection rendering in my rails app. The page I...

Learn More 10 5Jun 26 '20

Mac users, recommend me a booklet printer!

The music school I work at currently uses a Konica Minolta Bizhub 364e. One of these: Ever since...

Learn More 6 3Mar 23 '19

75 people followed me yesterday. Why?

I used to get a few follows most days. That tapered off since I haven’t been posting lately. I...

Learn More 6 4Feb 26 '19

Template design pattern in Ruby. Any reason not to use a module instead of a superclass?

The classic template design pattern uses inheritance to declare which methods its subclasses must...

Learn More 8 3Feb 9 '19

Dropdowns Without Javascript

You don't need a Javascript library for dropdown menus, just a few lines of CSS.

Learn More 20 12Aug 29 '18

Adding Code Quality Checks To Your Ruby Test Suite

Over time I've integrated a few static analysis tools into my workflow. These have been extremely...

Learn More 42 3Aug 15 '18

Explain Generics Like I'm Five

I often see discussion about generics, but I've never really grasped what they are. I'm a Ruby/Rails...

Learn More 37 9Jun 10 '18

Passing Arguments to StimulusJS Controllers

tl;dr – You can't, but there are other ways of getting data into your functions.

Learn More 17 0Jun 8 '18

What hobby/skill do you wish you pursued more regularly?

What activity deserves more time than you can give it?

Learn More 39 31May 6 '18

My Experience as a RailsConf Opportunity Scholar

You really need to go to RailsConf.

Learn More 9 0Apr 20 '18

Testing Bidirectional Associations in Rails

Adventures in TDD, or how I learned to make my test suite proofread my model associations.

Learn More 15 0Mar 28 '18

Redis is letting you down, but it doesn't have to

Are you seeing Redis::ConnectionError: Connection lost (ECONNRESET)? Is your cache hit rate suspiciously low? A story of the bug I didn't know I had, how I found it, and how I got rid of it. It's easy, I promise.

Learn More 13 0Feb 18 '18

Basic Concurrency in Ruby. Really Basic.

We read a lot about concurrency in Ruby. How do you actually do it, though? Here's how I made some concurrent, non-blocking API calls from a Rails app.

Learn More 13 2Feb 17 '18