Tutorials

Ruby's Switch Statement is More Flexible Than You Thought
Ruby's switch statement is very versatile and flexible, especially due to the dynamic nature of Ruby. In this post, we'll see how you can use it in various ways. We'll also learn why it works the way it works. Hint: it uses the `===` operator (met...

Hacking Rails Implicit Rendering for View Components
Understanding how Rails handles requests from routes.rb to calling the action method on a controller makes it possible to build Rails plugins ranging from Hanami-like action classes to component-driven Rails development.Have you ever opened a Rail...


Type Checking with the Sorbet Gem in Rails 7 | Ruby on Rails 7 Gem Tutorial - YouTube
Ever wanted type checking in your Rails 7 project? Well this is the Ruby on Rails 7 for you then lol.Checkout my course(s) at: https://learn.deanin.comhttps://sorbet.org/https://sorbet.org/docs/runtimehttps://nithinbekal.com/posts/sorbet-...Join t...


How to use Sidekiq in Rails 7: Background Jobs - DEV Community
In Rails, background jobs are used to process long-running tasks asynchronously, such as sending emails, generating reports, or processing large datasets. Rather than blocking the main thread of the application and potentially slowing down the use...

Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud API.
Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud API. Create bots to send and receive messages using the Whatsapp SDK in a few minutes. - ignacio-chiazzo/ruby_whatsapp_sdk: Use the Ruby Whatsapp SDK to communicate with Wh...


Elegant Memoization with Ruby’s .tap Method | Alex MacArthur
If you're unfamiliar, the @results instance variable if will only be set if it's falsey. It's a nice way to ensure an expensive operation is performed only when it's needed and never more than once.For one-liners like this, it's straightforward. B...