Skip to content
Write Software, Well
  • Services
  • Books
  • LinkedIn
  • Archive
  • About
Sign in Subscribe
How to Process a Turbo Stream Response in JavaScript using Stimulus

How to Process a Turbo Stream Response in JavaScript using Stimulus

It’s common to make HTTP fetch request to get some data from the server. It’s also convenient to update the HTML via Turbo Stream responses. What if you could combine the benefits of them both? This post shows you how to process Stream responses in JavaScript, without mucking around with the DOM.

Clientwork 6 min read
The Rails Config File

The Rails Config File

You must have used a `~/.bashrc` or `~/.zshrc` file to configure your environment. Did you know Ruby on Rails has a `~/.railsrc` file that configures your Rails applications? Not only that, it lets you pre-configure the gems you want in all your Rails applications. This post shows how it works.

3 min read

See Other After Destroy

This post explains why you should use the 303 See Other HTTP status after destroying a resource, instead of using 302 Redirect.

1 min read
Removing whitespaces from a String

How to Remove Whitespace from a String in Ruby

Often, you want to sanitize a string variable by removing all leading and trailing whitespaces around it. This is usually needed when you receive the string input from a user or an external source. This post shows you how.

Ruby Gems 2 min read
Sustainable Growth

Annual Blog Review: 2023

Every year, I do a personal annual review. This year, I thought why not do the same for my blog, since it has become such an integral part of my life, both personal and professional. This post contains some of the highlights and a list of all the articles I wrote in 2023.

Annual Review 31 min read
Enqueue multiple jobs together with perform_all_later in Rails

Enqueue Multiple Jobs Together with perform_all_later in Rails

Are you still looping over the list of jobs to enqueue them individually? This post explores the new `perform_all_later` method in Rails, which was introduced in Rails 7.1 and lets you enqueue multiple jobs together to reduce the round-trip to the job backend, like Redis or the database.

4 min read
Nested Modules in Ruby

Nested Modules in Ruby

There are two different ways to define nested modules in Ruby. This post explains them both along with the differences between them and how to decide which one to use. We will also learn about the `Module.nesting` method, which returns the list of nesting for a module.

Ruby Gems 3 min read
Reading a file in Ruby

How to Read a File in Ruby

Reading a file is a simple yet common programming task that can be accomplished in a few different ways in Ruby. In this post, we're going to cover the basics of reading files in Ruby, including few different ways to open and read files, both in-memory and via streaming.

4 min read
coral reef deep dive

Rails Internals: A Deep Dive Into Active Job Codebase

Do you want to understand how Active Job works behind the scenes? Reading and understanding the source code is one of the best ways to learn a framework (or anything). This post breaks it all down for you by tracing the journey of a Rails background job, from its creation to execution.

Rails Internals 10 min read
Working with SQLite in Ruby

Working with SQLite in Ruby

SQLite is an incredibly simple yet powerful database both for beginners and advanced users to learn SQL as well as build applications (both desktop and web) that need to store data. In this post, we're going to cover the basics of working with SQLite in Ruby.

6 min read
How respond_to method works in Rails

How respond_to Method Works in Rails

The respond_to method allows the controller to select the appropriate response format based on the request's Accept header or the request URL. You can also use it to handle variants for different screens. This post covers the basics of this method: what it is, how it works and why it's important.

6 min read
Linux Command Line: CDPATH

CDPATH: Easily Navigate Directories in the Terminal

The CDPATH environment variable lets you pre-configure frequently used directories so you can easily navigate into them from anywhere in your file system. This blog post shows how it works and how to use it.

2 min read

Page 7 of 18

Load More Something went wrong with loading more posts
  • Sign up
  • Homepage

© Write Software, Well 2025 - Powered by Ghost