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.
PostgreSQL generated columns in Rails
Rails 7 added support for generated columns in postgres. I wrote a blog post to understand what generated columns are and how to use them.
Rubber Duck Dev Show Episode 22 | Code Quality Analyzers
Hear two rubyists discuss code quality analyzers like RubyCritic: https://www.rubberduckdevshow.com/episodes/22-code-quality-analyzers/
Rails : how to add a column
Sometimes it’s good to go back to basics. While creating the blog article, we discovered that we were not aware of the “rails db” command - a pretty nice shortcut to investigate the underlying database of your app. https://www.bootrails.com/blog/rails-add-column/
GraphQL vs REST API: A Quick Comparative Guide
Before you kick your REST API to the curb in favor of GraphQL there are a few things you should know: https://buttercms.com/blog/graphql-vs-rest-api.
Creating and testing gRPC server interceptors in Ruby
Recently I had to create gRPC interceptors in Ruby, but finding a good way to test them was harder than I initially thought. So, I decided to document my approach to testing, for both unit and integration tests. You can read the full article here.
4 tips on how to make more out of Sidekiq
In my recent blog post, I share a few insights that I have learned about over time that may make your Sidekiq setup more efficient.
Extralite - a new Ruby gem for working with SQLite databases
Extralite is a new Ruby gem for working with SQLite databases. In my latest article I discuss its design and compare it with the sqlite3-ruby gem.
Glimmer DSL for SWT 4.22.0.0
SWT 4.22 was just recently released, and you know what that means! It’s Glimmer DSL for SWT major upgrade time! Glimmer DSL for SWT 4.22.0.0 just got released to include SWT 4.22 among other big upgrades and changes. [more inside]
The Fastest Way To Load Data Into Postgres With Ruby on Rails
This article looks at 4 methods to load data into Postgres with Rails: 1) Inserting one record at a time 2) Bulk Inserts with Active Record Import 3) PostgreSQL Copy with Activerecord-copy 4) Using background jobs [more inside]
The Future of (Crypto) Punk's Not Dead - Tell Us What You Want To See in 2022!
Hello, A new year is upon us and I try my best to continue working (volunteering, really) on the pixel art programming - yes, in ruby - projects under the (Crypto) Punk’s Not Dead umbrella that incl. free pixel art, booklets, tools & scripts and much more. ++ Tell us what you want to see in 2022. Yes, you can.
How to Use Kredis in Rails
Kredis is a high level wrapper around Redis and makes life easy for anyone interacting with Redis. Watch the How to Use Kredis with Rails screencast where we build a recent searches feature that keeps track of recently submitted search queries.
puts_debuggerer is State of the Art Rails in 2021
There is a project on GitHub that lists/demonstrates state of the art Rails technologies in 2021. Interestingly enough, one of my gems, puts_debuggerer, made the list! [more inside]
What are the square brackets in my Rails migrations?
Let’s look at what these little square brackets are doing in our Rails migration files!
Minitest Heat
Minitest Heat is a Minitest reporter that helps you identify problems faster so you can more efficiently resolve test failures by generating a heat map that shows where failures are concentrated. You can see a preview of example test results on the wiki or install it and try it out on an existing project.
Rails 7 adds caching? and uncachable! helper
Starting with Rails 7, we can add caching? helper to check whether the current code path is being cached and uncacheable! helper to avoid fragment caching. [more inside]
Qeweney - a feature-rich HTTP request/response API for Ruby
Qeweney is a new abstract HTTP request/response API, developed primarily for Tipi a new high performance web server for Ruby. In my latest article I explore the design decisions behind Qeweney and how it can be used with Rack apps.
Hanami v2.0.0.alpha4
New API for Content Security Policy, Router helpers from actions, CLI enhancements. https://hanamirb.org/blog/2021/12/07/announcing-hanami-200alpha4/
Exploring dependency injection in Ruby
Classes depend on each other all the time. But the way you tie those classes together will determine how hard it is to change your code. Dependency injection can help you reduce that coupling and reduce your cost of change.
Replacing Select2 with Tom Select + Stimulus
We all used Select2. We all depended on it for a long time, for all our Select/Autocomplete needs. But it’s been showing signs of aging for quite a while, and it’s one of the last libraries that still keeps me tied to jQuery. https://coolrequest.dev/2021/11/25/replace_select2.html
Glimmer DSL for Tk Contextual Menu
Glimmer DSL for Tk v0.0.49 ships with a new sample: Hello, Contextual Menu! It demonstrates the just added explicit support for Contextual Menus. These are also known as pop-up menus, which show up when right-clicking in an application. [more inside]
Episode 1: Why Ruby2JS is a Game Changer
Tune in for the debut episode of Fullstack Ruby! I’ve been on a few Ruby-themed podcasts over the past 18 months, but this is the first time I’m running a show about Ruby myself. To kick things off, I’d like to introduce you to Ruby2JS and explain why I think this technology is a game changer.