The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Inline documentation - The secret habit of successful devs | Hanami Mastery #17
Everyone would love to have a secret power. A skill that makes you a hero. There is no one such skill, but in this episode, I’ll talk about inline documentation - a great skill that can make you a better developer. Read more
Rubber Duck Dev Show Episode 32 | Reviewing the OWASP Top 5
Hear two rubyists discuss the top 5 web application security risks from OWASP:
Rails 7 Hotwire : a tutorial
Hotwire is the new functionality of Rails that gained momentum lastly. This tutorial is a practical introduction to each feature. Read more
[Screencast] Remote Development
Having a fast and expensive computer to do daily development is a luxury. Sometimes, we may be in a position where we are just getting started with programming and the budget is very small. In this episode we look at a very moderately priced Chromebook and explore how we can make it into a viable development machine. https://www.driftingruby.com/episodes/remote-development
How to Introduce Testing in Teams and Companies
Testing is a fundamental part of a quality-driven culture, a prerequisite for avoiding the two biggest risks for a company developing products: the risk of doing the wrong thing, and the risk of doing it too late. Read more
Being a backend developer
I wrote a small post about how I feel being a backend developer. Bit off topic but posting it here because I am a RubyOnRails developer. Read more
Async Ruby - Ruby Rogues podcast
This podcast episode covers the topic of “async ruby” from a new angle. We talked about a lot of the things that weren’t mentioned so far: Read more
[book] I Love Ruby updated
Updated Structs & OpenStruct, added sections Rubocop and running Ruby in Jupyter in my book I Love Ruby. Get it here.
A Wordle decoder that guesses your guesses.
It’s all in Ruby and it’s open source
Building a restricted slug validator
Here’s how to build a custom slug paths validator.
Glimmer Klondike Solitaire 1.1.0
For those who like the Klondike Solitaire card game (aka Patience), Glimmer Klondike Solitaire 1.1.0 has been released with a couple of fixes. Read more
CodeTips#1: Exploring Hashes in Ruby
In this article we will be exploring 3 (+ one bonus) methods to retrieve values from hashes in Ruby and a few of it’s uses. Read more
How to rename a Rails app
Here are the instructions to rename an existing Rails app. Nothing really risky, it should be a set-and-forget thing. Read more
Glimmer DSL for SWT Video Tutorial 5 - Hello, File Dialog!
The Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) Video Tutorial 5 is out! It walks software engineers through Hello, File Dialog! Read more
How to build modals with Hotwire (Turbo Frames + StimulusJS)
Hotwire allows us to add Single Page App (Turbo Frames), or AJAX (Turbo Streams) functionality without writing any custom Javascript! (It has all been pre-written for us). Read more
Rails 7 application inside Docker on macOS: Part two - database and Mutagen
How to create Rails 7 app with all dependencies hidden inside a Docker container link
Don't waste your time on assets compilation on Heroku
At some point, you may want or be forced to use the CDN to serve assets of your Rails app. When your app is globally available, you may want to serve the assets from strategically located servers around the world to provide the best possible experience for the end user. Serving static assets via Puma is not the best idea — it’ll be slow. The only viable option on Heroku is to use CDN. I will show you how to do it smart, save time and have faster deployments Read more
Ruby on Rails Forms With Hotwire (video)
I wanted to find out if Hotwire can be as good, or better than something like React JS. But… I wasn’t sure if Hotwire is up to it.
The In-depth Guide to ActiveRecord load_async in Rails 7
The In-depth Guide to ActiveRecord load_async in Rails 7 Rails 7 introduces ActiveRecord load_async API that runs SQL queries asynchronously in the background thread. This seemingly simple change of just adding a single new method that takes no arguments has profound implications for database layer interactions. In this tutorial, we’ll deep dive into the intricacies of this new API. We’ll discuss lazy-loaded queries, Ruby threading model, blocking IO, database pool vs. max connections limit, and performance impact of concurrent database clients. I’ll also try to suggest scenarios where introducing async SQL queries could have the most benefit without sacrificing the stability of your Rails app. Read more