Tutorials

rstfilter VSCode extension for your new Ruby development experience
Today I released new VSCode extension Ruby's rstfilter extension.This extension provides new Ruby development experience:You can see the execution results line by line on the editor without launching a ruby command manually. You only need to start...

How to Effortlessly Build an Instagram Clone With Hotwire - YouTube
In this video, we're going to look at how you can build an Instagram clone with Hotwire.🎥 Join my new Ruby on Rails Class here: https://mixandgo.com/rails-classGithub Repository: https://github.com/mixandgo/hotwire_i...You can subscribe to the ch...

Scaling Rails web sockets in Kubernetes with AnyCable
One of the things I love the most about Rails is how easy it makes implementing many features with very little setup from my part. One example is ActionCable for web sockets. Before ActionCable, whenever I needed to build realtime features I had t...

How to Add Infinite Scrolling With Hotwire in Under 5 Minutes - YouTube
In this video we're going to look at how you can add infinite scrolling into your Rails app with Hotwire.This feature allows you to paginate your records by scrolling to the bottom of the page, as opposed to using manual pagination where you need ...


The Case for Pattern Matching Key Irreverence in Ruby
I had alluded to this post a bit earlier on Twitter, and in the Ruby bug tracker, but wanted to more fully write out my thoughts on what could be an incredibly powerful paradigm shift in how Ruby treats pattern matching on hash-like objects.That i...

Understading why attr_accessor in Ruby is faster than a regular method
Setters and getters (or accessors) are very common in various object–oriented programming languages. Some languages have shortcuts to define them, others require programmers to write them by hand (hi, Java!). Ruby does have these shortcuts: attr_r...

Rails allows specifying the maximum number of records that will be destroyed in a single background job. | Saeloun Blog
Rails 6 had added the :destroy_async option to delete the associated records in a background job whenever the foreign_key constraint would be disabled.But what if the associated records are too large? In this case, by default, the single backgroun...


Using ActiveRecord with SQLite DB in a JRuby Desktop App
SQLite is the simplest relational database to use from JRuby desktop applications, it is built-in on all platforms (Mac, Windows, and Linux), and it can be utilized conveniently via ActiveRecord, the Rails object-relational mapping library followi...