Curated developer articles, tutorials, and guides — auto-updated hourly


Seven gems to run background jobs. That's what 37signals was running before they said "this can't be...


"This page feels slow" is a vague bug report. Before changing any code, it helps to have a fixed way...


A Rails app grows. Changes in one corner start breaking another, two teams keep colliding in the sam...


I got asked this in an interview years ago, and I've asked it from the other side of the table since...


Imagine a user trying to upload a 100MB video or a high-resolution photo to your app. If you use the...


I’ve lost count of the number of hours I’ve spent in the past building "Live Search" features. In....


When investigating a slow Rails endpoint, it's common to start by looking for N+1 queries, missing.....


You ship a /posts index page. It renders 50 posts, and for each one it shows the author's name with....


These four all deal with associations, and they're easy to mix up. The way I keep them straight is t...
![Pagination: Always a "sort" (of) mistake [bugfix]](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvnqzg9s7l0fx2dewnae.png)

Pagination is a key component on web-applications that let users navigate through pages making easy....


A transaction groups several database writes into one atomic unit. Either all of them commit, or non...


&blk in a parameter list turns a block into a Proc; &proc at a call turns a Proc back into a...


The hook: I added includes and the page was still N+1 We had an admin page listing...


For a long time, if you wanted to send a "Push Notification" to a user’s phone or laptop, you needed...


If you have been using AWS S3 for your Rails file uploads, you know the pain of the monthly bill....


A look at rails callbacks and how to use AI effectively