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.
The Economics of TDD
Getting started with TDD can be challenging, but it’s a game-changer. The increased speed and ROI cannot be compared with other development methods such as waterfall. [more inside]
Truemail 2.7.0 has been released 🚀 configurable plain Ruby 📨 email validator
Added ability to specify SMTP port number for SMTP validation layer. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
9 Ways To Make Slow Tests Faster
A test suite will gradually slow down unless it is dutifully maintained, dragging the team’s morale down and making your organization miss deadlines. [more inside]
PG zero-downtime migration from int to bigint (with Ruby on Rails notes)
If you have an integer column you must migrate to a bigint column and you can’t afford downtime (or you’re interested in how that can be done) this blog post gives the recipe. [more inside]
Cucumber Founder Aslak Hellesøy on TDD and BDD
🎧 Great interview with the Cucumber founder - Aslak Hellesøy [more inside]
An Introduction to the ViewComponent Gem
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It’s a framework for creating reusable, testable & encapsulated view components that integrate seamlessly with Rails. In this article, Abiodun Olowode shows us how to use ViewComponent to make our Rails views more manageable. https://www.honeybadger.io/blog/ruby-view-components/
Multiple system Ruby versions on Fedora-based systems
Hi all. If you haven’t heard it yet, you can install different Ruby versions via modular packages on Fedora, CentOS Stream, RHEL, or Rocky Linux. You don’t need chruby or rbenv to have more choices.
Action Mailer : a tutorial
Action Mailer is already included in any new Rails application. However in this tutorial we will take time to see how each piece of code works. [more inside]
Glimmer DSL for Tk Hello, Labelframe and Scale!
Glimmer DSL for Tk (Ruby Tk Desktop Development GUI Library) v0.0.54 and v0.0.55 just got released with two new samples: Hello, Labelframe! and Hello, Scale! [more inside]
Simple CSV Parsing (with error handling)
Parsing CSVs doesn’t have to be complex. In this article I walk you through how to simplify any complexity that would normally require multiple objects, complicated nested loops, etc. Enjoy!
Multiple CSS files using TailwindCSS gem
https://github.com/loqimean/tailwindcss_merger [more inside]
Single and Double Splat operators in Ruby
The splat operator is a powerful Ruby feature, but we should be cautious when using it. I wrote a post that describes the Splat operator usage, along with dangerous cases I have seen.
Rubber Duck Dev Show Episode 30 | How To Get Started Coding
Hear two rubyists discuss how to get started coding: https://www.rubberduckdevshow.com/episodes/30-how-to-get-started-coding/
Glimmer DSL for SWT Video Tutorial 3 - Hello, Tab!
The Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) Video Tutorial 3 is out! It walks software engineers through Hello, Tab! [more inside]
What I Learned from My First Rails Upgrade
What a less experienced developer learned while working in their first Rails upgrade project [more inside]
Glimmer DSL for Opal Made Peace with Rails 6
Glimmer DSL for Opal has intentionally skipped over Rails 6 in the past due to its absolutely horrible Ruby-community-betraying webpacker default, but given that the Rails team have recently redeemed themselves with Rails 7 retiring the pathetic webpacker, Glimmer DSL for Opal has been updated to work with Rails 6! [more inside]
Rails + SQL Views
https://github.com/igorkasyanchuk/sql_view new gem to work and create SQL views in 2 steps - generator+migrate. THE EASIEST solution :)
Delayed Job vs. Sidekiq: Which Is Better?
The pros and cons of Delayed Job and Sidekiq: https://blog.appsignal.com/2022/02/15/delayed-job-vs-sidekiq-which-is-better.html