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.
Ruby monkey patching. An introduction
Monkey patching is a technique used in Ruby programming to modify or extend the behaviour of existing classes or modules at runtime. It involves adding, removing or modifying methods and attributes of existing classes or modules at runtime, without actually changing the source code of the original class or module. https://medium.com/@real_wyodeb/ruby-monkey-patching-an-introduction-d1328fc99da7
ChatGPT materialized as GUI via Ruby & Glimmer DSL for LibUI
Apparently, ChatGPT has materialized in our world as a GUI (Graphical User Interface) via Ruby and Glimmer DSL for LibUI. [more inside]
Working With Markdown in Ruby
This article explores how to use markdown in Ruby. Learn how to use two popular Ruby libraries—Redcarpet and Kramdown—to parse markdown and create a simple documentation app using Redcarpet and Sinatra. https://www.honeybadger.io/blog/ruby-markdown/
A Generalized User-local Container for UI State in Kredis
In the second and final part of this series, we’ll develop a generalized user-local container for UI state in Kredis: https://blog.appsignal.com/2023/03/15/a-generalized-user-local-container-for-ui-state-in-kredis.html
No more N+1. Period.
I encourage you to stop using the Ruby on Rails built-in solution for resolving the N+1 problem and switch to automatic preloading. Are you surprised it’s possible? Check it by yourself: https://evgeniydemin.medium.com/automatic-preloading-in-rails-the-dream-that-came-true-80ed4982ce2d
From a Rails app print logs in the Chrome console
https://github.com/railsjazz/railsochrome how to print your log messages from the Rails app in the Chrome console. [more inside]
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: https://www.rubberduckdevshow.com/episodes/77-monetizing-your-developer-content-with-seb-wilgosz-lucian-ghinda/
Trending Ruby repositories
https://opensource-heroes.com/discover/ruby 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. https://fly.io/ruby-dispatch/little-gestures-of-confidence/.
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. https://www.honeybadger.io/blog/ractors/
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.
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]