DEV Community

matt swanson profile picture

matt swanson

Full-stack product engineer with 10 years experience building web applications. Keep it boring.

Location Indianapolis, IN Joined Joined on  Personal website https://boringrails.com github website twitter website

Education

Purdue

Work

Product Engineer at Arrows

Four Year Club
Writing Debut
Three Year Club
Two Year Club
One Year Club
8 Week Writing Streak
4 Week Writing Streak
Event sourcing for smooth brains: building a basic event-driven system in Rails

Event sourcing for smooth brains: building a basic event-driven system in Rails

6
Comments 1
8 min read
Thinking in Hotwire: Progressive Enhancement

Thinking in Hotwire: Progressive Enhancement

13
Comments
7 min read
Galaxy brain CSS tricks with Hotwire and Rails

Galaxy brain CSS tricks with Hotwire and Rails

14
Comments
5 min read
Adding keyboard shortcuts and hotkeys to StimulusJS

Adding keyboard shortcuts and hotkeys to StimulusJS

9
Comments
4 min read
The most underrated Rails helper: dom_id

The most underrated Rails helper: dom_id

13
Comments
4 min read
Self-destructing StimulusJS controllers

Self-destructing StimulusJS controllers

11
Comments 1
3 min read
Tailwind style CSS transitions with StimulusJS

Tailwind style CSS transitions with StimulusJS

43
Comments 1
9 min read
Ordinalize: Adding "-st", "-nd", "-rd", "-th" to dates

Ordinalize: Adding "-st", "-nd", "-rd", "-th" to dates

8
Comments
1 min read
Debugging slow Heroku builds

Debugging slow Heroku builds

4
Comments
4 min read
Quickly explore your data with `uniq` and `tally`

Quickly explore your data with `uniq` and `tally`

12
Comments
1 min read
Improving your Rails mailers with `email_address_with_name`

Improving your Rails mailers with `email_address_with_name`

19
Comments 2
1 min read
Building lightweight components with Rails Helpers and Stimulus

Building lightweight components with Rails Helpers and Stimulus

14
Comments
2 min read
Combine `redirect_to` and the `anchor` option

Combine `redirect_to` and the `anchor` option

10
Comments
2 min read
Lazy-loading content with Turbo Frames and skeleton loader

Lazy-loading content with Turbo Frames and skeleton loader

19
Comments
3 min read
Use `to_sql` to see what query ActiveRecord will generate

Use `to_sql` to see what query ActiveRecord will generate

9
Comments
2 min read
Prefer returning chainable ActiveRecord objects

Prefer returning chainable ActiveRecord objects

15
Comments 2
2 min read
Rails validations: unique within a certain scope

Rails validations: unique within a certain scope

10
Comments
2 min read
Boring breadcrumbs for Rails

Boring breadcrumbs for Rails

8
Comments
2 min read
Sharing common code between Rails controllers with `Scoped` pattern

Sharing common code between Rails controllers with `Scoped` pattern

15
Comments
1 min read
Run different ActiveRecord validations based on context

Run different ActiveRecord validations based on context

5
Comments
2 min read
Find records missing an association with `where.missing`

Find records missing an association with `where.missing`

8
Comments
2 min read
Testing multiple sessions in the same test with Capybara

Testing multiple sessions in the same test with Capybara

6
Comments
1 min read
Pluck single values out of ActiveRecord models or Enumerables

Pluck single values out of ActiveRecord models or Enumerables

6
Comments 1
2 min read
Never mix up greater/less than when comparing dates again

Never mix up greater/less than when comparing dates again

14
Comments
1 min read
Super readable String operations with `delete_prefix` and `delete_suffix`

Super readable String operations with `delete_prefix` and `delete_suffix`

6
Comments
2 min read
Setting CSS classes in Markdown with Jekyll

Setting CSS classes in Markdown with Jekyll

4
Comments
1 min read
Use Heroku Dataclips to share query and do ad-hoc data exports

Use Heroku Dataclips to share query and do ad-hoc data exports

2
Comments
1 min read
Ensure required environment variables are set when booting up Rails

Ensure required environment variables are set when booting up Rails

7
Comments
1 min read
Search and debug gems with `bundle open`

Search and debug gems with `bundle open`

12
Comments
1 min read
Automatically cast params with the Rails Attributes API

Automatically cast params with the Rails Attributes API

14
Comments 1
3 min read
Show relevant chunks of text with Rails `excerpt` helper

Show relevant chunks of text with Rails `excerpt` helper

3
Comments
2 min read
Use Rails `link_to_unless_current` for navigation links

Use Rails `link_to_unless_current` for navigation links

7
Comments 1
2 min read
Use Rails `cycle` to avoid `i % 2 == 0` in your view loops

Use Rails `cycle` to avoid `i % 2 == 0` in your view loops

Comments
2 min read
Use the Rails helper `highlight` when showing search results

Use the Rails helper `highlight` when showing search results

6
Comments
2 min read
Magic Responsive Tables with Stimulus and IntersectionObserver

Magic Responsive Tables with Stimulus and IntersectionObserver

2
Comments
7 min read
Hacktoberfest Recap: Open source Ruby/Rails work in 2020

Hacktoberfest Recap: Open source Ruby/Rails work in 2020

Comments
5 min read
Building GitHub-style Hovercards with StimulusJS and HTML-over-the-wire

Building GitHub-style Hovercards with StimulusJS and HTML-over-the-wire

3
Comments 1
10 min read
Writing better Stimulus controllers

Writing better Stimulus controllers

25
Comments
10 min read
Feature Flags: The simple way to de-stress production releases

Feature Flags: The simple way to de-stress production releases

9
Comments
7 min read
Spring Cleaning: Tidying up your codebase

Spring Cleaning: Tidying up your codebase

1
Comments
8 min read
Building a Rails CI pipeline with GitHub Actions

Building a Rails CI pipeline with GitHub Actions

2
Comments
8 min read
Wrangling slow reports, large file exports, and long-running tasks in Rails with Active Job

Wrangling slow reports, large file exports, and long-running tasks in Rails with Active Job

3
Comments
16 min read
Managing Rails schema and data migrations without losing your mind

Managing Rails schema and data migrations without losing your mind

1
Comments
6 min read
loading...