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.
Monetizing Your Developer Content With Seb Wilgosz & Lucian Ghinda | Rubber Duck Dev
In this episode, we discuss how to monetize your developer content with Seb Wilgosz & Lucian Ghinda:
Trending Ruby repositories
list of trending repositories
VideoInfo - New release with statistics and more!
We just released 🚀 a new version of VideoInfo (v4.0.0) with some new cool features (like a new method that returns statistics about the videos), some performance improvements and a lot of internal improvements. Hope you find it useful! [more inside]
Translating XML/Epub using DeepL & ChatGPT
The natsukantou & epub-translator gems can translate XML and Epub respectively. They are more than just wrappers to DeepL/ChatGPT, but instead utilize various techniques to facilitate a better customization and user experience. This blog post covers those, such as middleware, comment reflection and command-line wizard.
Little Gestures of Confidence
I wrote more in-depth about little tweaks we could be doing in our Ruby or Rails projects to make Ruby an even friendlier place for people who are just getting started.
SearQ a simple, clean and fast Rails RESTful API based on
Hi I’ve just released my latest open source project https://searq.org. [more inside]
Rails's .try vs Ruby's &. (a.k.a safe navigation)
Rails’s .try vs Ruby’s safe navigation [more inside]
A Beginner's Guide to Ractors in Ruby
Ractor is Ruby’s new Actor-like concurrency abstraction—it lets execute code in parallel without worrying about thread safety. This article is an excellent introduction to Ractors and how to begin using them in your Ruby code.
Best way to work with Front Matter in Ruby!
If you want to work with frontmatter in Ruby, you need to know the front_matter_parser gem. Here is everything you need.
How to Find, Debug and Fix N+1 Queries in Rails
Fixing N+1 issues is often the lowest-hanging fruit in optimizing a Rails app performance. However, for non-trivial cases choosing a correct fix could be challenging. Moreover, incorrectly applied eager loading does not work or even worsens response times. In this blog post, I describe tools and techniques I use to simplify resolving N+1 issues. [more inside]
Tracking down not resolving constants with parser
Recently we started upgrading Ruby 2.4 app. One huge change Ruby 2.5 introduces is removal of top–level constant resolution. This can cause serious runtime issues, remaining unspotted before hitting the production, especially if app lacks appropriate test coverage. [more inside]
Adventures in Time: Debugging a Daylight Saving Bug
I wrote up a little adventure I had last fall debugging a spooky daylight saving bug ⏰🐛 [more inside]
Failing In Public | Rubber Duck Dev Show 76
In this episode, we discuss failing in public and how senior developers live-streaming their learning process could be beneficial to other devs:
An introduction to ORMs
Object-relational mapping (ORM) is a technique used to connect and represent relational databases with object-oriented programming languages. Active Record is one of the most popular ORM frameworks available for web application development. Like any technology, Active Record has its pros and cons, which we will explore in this essay. [more inside]
[Screencast] Deploying with MRSK
MRSK deploys web apps anywhere from bare metal to cloud VMs using Docker with zero downtime. In this episode, we will set up a Digital Ocean infrastructure with a Load Balancer, Virtual Machines, and a PostgreSQL database. We’ll use MRSK to provision and deploy our Rails application to the Virtual Machines. https://www.driftingruby.com/episodes/deploying-with-mrsk
TableInspector: A Gem to print table schema in database
I wrote a gem to print table schema in console. It will be helpful when you want to check the table schema in rails console. Gem repo:
Use Bundler in a Ruby script
Did you know that we can use Bundler without a Gemfile?
LightBlog: a file-based blog app written with Roda
I’ve open-sourced the bulk of my blog in the light_blog gem. My blog is hosted for free in GCP using the e2-micro engine. Check it out.
AnyCable v1.3: embedded NATS, StatsD, and more
AnyCable v1.3 has been just released. The major highlights are embedded NATS support (no need to deploy a standalone pub/sub engine), smart configuration defaults for Fly.io , and out-of-the-box integration with Rails 7 error reporting interface. [more inside]