Contributions

Article
Have you heard about it? Have you used it? Are you excited about it?

What is it, and how can you use it in ruby? Find out!
Article
A summary of my time at RubyConf 2024.
Article
Have you ever tested a method that pulls records out of the database and applied mocks to those records you just created in your test? Have you been surprised that the record does not appear to have the behavior you mocked out? I have an explanation of the situation for you and some options for how you can address it.
Tutorial
How do you access request AND response headers in a rails controller? What does the headers method refer to? Let’s dive into the Rails source code to investigate a failing rspec request spec.
Article
Whether you were at RailsConf and wish we were still there, or missed it and you’re curious, I’ve got you. I wrote about my takeaways from RailsConf 2024.
Article
This post introduces Sidekiq Pro’s batches feature. It builds some tests that exercise batches to explain how they work.
Article
When we were putting the RailsConf program together, I brainstormed track options. We didn’t end up using them, so here are eight tracks you won’t see at RailsConf 2024.
Article
An attendee’s perspective of my time at RubyConf 2023.
Article
This presents sources that highlight Ruby news on a weekly basis, giving you something to follow each day of the week.
Article
Recently I asked how people prefer to see inherited behavior tested. This discusses each of the options in more detail and shows the results of the poll.
Article
Last week at Blue Ridge Ruby, we heard a lot of great talks. I compiled a brief summary of the program.
Article
This post explores how flog, a tool that analyzes the complexity of your code, can identify areas to refactor.
Article
This post explores inheritance and composition as a way to build and share behavior in a system to model guitar amplifiers.
Article
Domain modeling is a tough and vast topic. I think hard and fast rules are difficult to come by. There are definitely guidelines and principles you can use though. I've compiled some of my favorites to code a system to play the guitar like one of my favorite guitarists.
Article
Calling freeze on an object may not provide the immutability you expect. Here we dig into some of freeze's nuances to explore a surprise of my own making I encountered working with ActiveSupport.
Article
Ruby’s Coverage module can now measure coverage of eval. Let’s explore how it works and why it’s important.
Article
This post celebrates my first code commit merged into Ruby with the years-long tale of what put me in position to make the change.
Article
Did you miss RubyConf Mini and are you wondering what happened? Were you were there and want a hit of nostalgia about that thing from DAYS ago? I’ve got you covered with my recap.
Article
Are you looking for an elegant solution to pipe output from your Ruby code to Sonic Pi? This isn't it. But it does work.
Article
This post utilizes a score of Array and Enumerable methods to model music notes.
Article
Secret agents must keep followers off their trail. Your tests don’t have to. There are many options to arrange test doubles with RSpec. This article proposes doing so in a way that provides a consistent test organization.
Article
RSpec request specs can test endpoints that raise exceptions handled by Rails to return 4xx or 5xx responses. To test the returned response code, rather than the exception, you need extra setup.
Article
This article decomposes an interaction with an external dependency into its component parts. It discusses how to test each piece individually and the overall architecture.
Article
It may not be *your* code, but you still want to make sure you're using it the way you expect to. Let's explore four ways to test interactions with third-party dependencies, whether it be a HTTP API, database, gem, or other system.
Article
Using ruby for a quick web scraping operation, I was able to automate a small part of my personal life to facilitate an online purchase.
Article
find_or_initialize_by in rails takes a block. Just because you can doesn't mean you should. Passing it a block may put you in an awkward position. Let's find out how.
Article
Ruby setter methods may not return the result you expect them to. Find out what they return, and why, in this article.
Article
Ruby's coverage module includes many options that can answer different questions about your code. This article explores the modes that the module provides.
Article
Ruby's expressiveness and vast API provides a myriad of ways to solve the same problem. This post proposes different ways to add elements to an array only if a certain condition applies.
Article
Ruby IO may not immediately write where you are asking it to. Here we explore where writing to a stream goes and when it may or may not be committed where you would expect it to.

Showing the last 30 only...