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.
Glimmer DSL for SWT 4.19.0.0 Halved Startup Time
Glimmer DSL for SWT just had the biggest release in quite a while in version 4.19.0.0, upgrading to the newly released SWT 4.19 and cutting down the glimmer command startup time by half. [more inside]
Why is Ruby on Rails worth Investing in 2021?
The Ruby on Rails framework is still relevant in 2021. Here’s what makes the RoR framework perfect for web application development in this year. https://www.botreetechnologies.com/blog/why-is-ruby-on-rails-worth-investing/
Kiba ETL v4 (maintenance release) is out
Kiba ETL (a popular Ruby data processing framework) v4.0.0 is out! Go check it out and upgrade your apps: [more inside]
Live previews with Rails and Stimulus 2
If you ever wondered how to do live previews in Rails I looked into Hotwire and put together two approaches (with UJS and with Turbo Frame).
Better OOP Through Lazily-Instantiated Memoized Dependencies
The outside objects created or required by a particular class in order for it to function broadly are called dependencies. There are various schools of thought around how best to define those dependencies. Let’s learn about the one I prefer to use the majority of the time. It takes advantage of three techniques Ruby provides for us: variable-like method calls, lazy instantiation, and memoization.
Track Records Changes with PaperTrail gem
Want to track record changes in Ruby on Rails? You can easily use the PaperTrail Gem and track them without any hassle. Checkout guide on papertrail gem. https://www.botreetechnologies.com/blog/track-records-changes-with-papertrail-gem/
A Complete Guide to Hiring Ruby on Rails Developers in 2021
This guide to hiring Ruby on Rails developers will help you make the right decision. Learn more about hiring Ruby on Rails programmers. https://www.botreetechnologies.com/blog/guide-to-hiring-ruby-on-rails-developers/
Rails: How to send and receive webhooks
Plus a tiny trick to help keep your background jobs idempotent. [more inside]
Rails adds `#with_all_rich_text` to eager load all rich text associations at once
Rails added support for eager loading all rich text associations at once. We can now use
#with_all_rich_text [more inside]
RSpec fundamentals: a basic glossary
After writing about RSpec’s setup, I thought it’d be useful to explore the methods you’ll use the most when testing with RSpec. 👉 https://remimercier.com/rspec-fundamentals-glossary/
How To Use Enums in Rails 6
A detailed deep-dive into using enums in Ruby on Rails. https://betterprogramming.pub/how-to-use-enums-in-rails-6-87600e292476
Implementing Order With ActionCable Signalling & WebRTC.
WebRTC out of an event-driven environment can get messy quickly. I wrote about how you can put some order in message exchanges with Rails. https://emmanuelhayford.com/implementing-order-with-actioncable-signalling-webrtc/
Code review of an Order object implemented as a state machine
As part of the RailsEventStore ecosysem we work on a sample application - Order Management app. In this blogpost I’m looking at the recent changed in the Order class, pointing some smells and improvement directions: [more inside]
Strategic 0.9.1 Strategy Matcher/Alias/Exclusion
The Strategic Ruby gem (Painless Strategy Pattern for Ruby and Rails) just had a new release in 0.9.1 [more inside]
How To Handle Special Actions In Ruby on Rails Controllers?
I had a mini dive into the best approach for how to handle those special one off actions which sometimes slip into controllers. [more inside]
Use ActiveAdmin like a boss
ActiveAdmin is widely used administration framework in Rails applications. This post explains how to hook more sophiscicated domain logic into it: https://blog.arkency.com/use-activeadmin-like-a-boss/
How to Determine the Maintenance Cost for Ruby on Rails App
Multiple Ruby on Rails maintenance costs are associated with any RoR web apps project. Learn how much it costs to maintain a Ruby on Rails web app. https://www.botreetechnologies.com/blog/ruby-on-rails-maintenance-cost/
What is a monorepo? (and Should You Use Them?)
Monorepos can foster rapid development workflows. In this post, we’ll examine if they are the right fit for you and your company. [more inside]