kaspth
Subscribe
RSS
Archive
Code golfing review: how to make composable Active Record queries
October 19, 2024
A quick backstory first. This week, Matt Swanson requested a roasting of this code he posted: I'm generally not a roast person, but I am a complete sucker...
Keep your Rails app competitive with Oaken & ActiveRecord::AssociatedObject
August 25, 2024
Hey everybody, this week I did an impromptu talk with the Turkish Ruby meetup. I'm basically speedrunning a walkthrough of both...
Why is Oaken: for your database seeds & test data
August 18, 2024
Today, I'd like to talk about this gem I've been working on for a while — and I think I've got something that can vastly help clarify your codebase over the...
My take on Refactoring Rails' initializers
August 11, 2024
Last week, I setup a refactoring challenge for a file in Rails' source code. You can read that post here. There were no submissions from other people, so...
Refactoring Rails challenge: initializers
August 4, 2024
Today, I'd like to challenge you to refactor a Ruby file in Rails itself. It's rails/railties/lib/rails/initializable.rb. Look daunting? Read on for why I...
My Intro to Domain Modeling with riffing: The Bike Shed & RailsConf talk
July 28, 2024
For the past many years, I’ve been heavily focusing on leveling up my domain modeling skills. In my experience, domain modeling is the most overlooked part...
Showcasing a simple dark mode implementation
July 22, 2024
Today, let's look at implementing the simplified light and dark mode toggle I shipped for Showcase. Showcase lets you build previews for your partials,...
How to Approach Modelling: a Kanban board in Rails
July 14, 2024
Last week, Adrian Marin asked for my take on how to model a Kanban board since they're about to write that for Avo. You can read their blog post on what...
Stowaway: Deleting Records in your Rails app, with a concept
July 8, 2024
To practice Domain Modeling, I like to play with anything that sparks an idea. When I read Soft Deletion Probably isn't Worth It that's exactly what...
Clear up your Rails controllers with before_action wrappers
July 6, 2024
What does clear code mean to you? To me, it's all about communication. What does this say and how? — and how is the system communicated in our specific case?...
Just start small
July 1, 2024
Just start small I feel terrified writing this.I feel terrified trying to write again and start a newsletter. What do I have to say that’s valuable? What do...
GitHub
Twitter
Mastodon