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.
Necromancer v0.7
The latest necromancer adds the ability to transform strings into hash of string, integer, float or boolean values. It also improves string into range conversion to work with decimals and spaces. Enjoy!
Speed up bundle installs
Here is a quick tip that might speed up your bundle installs. By using bundle config set jobs $(nproc) you can tell bundler to use all of your processors when installing gems in parallel. This should be the default behaviour according to my reading of the source code, but it isn’t. [more inside]
txtar gem - a Ruby implementation of txtar Go package
I found txtar package while working on my Go projects and liked the idea. Txtar archives helped me to package test fixtures in a clean and a human-friendly way. [more inside]
All Ruby Books is Back! New Home @ Planet Ruby - Updates Welcome
Hello, The All Ruby Books page / collection was started by Florent Guilleux in 2016 - Thanks! Merci! - and is now back at its new home @ Planet Ruby. Updates welcome. Cheers. Prost.
Private Is For Humans
A friend told me about a job interview from years ago where he received feedback that he had used private incorrectly. Let’s look at why it’s not “incorrect” to place constants under private.
Rails: Following and Notifications
A month or so ago we released following and email notifications for Speaker Deck. I thought I’d share how we whipped this together and why we did it the way we did. The end result is a stable notification system that gets the job done and will be easy to grow as Speaker Deck continues to grow. [more inside]
Union Types and Sorbet
This post explains what union types are and how they can be useful when using Ruby with Sorbet. [more inside]
Benchmarking Ruby 2.4 to 3.0
Benchmarking three real-world application/libraries on different Rubies -
How to Build a Twitter Clone with Rails and Hotwire
A follow up on a previous article where Rails, React and ActionCable were used to build a Twitter clone with the new Hotwire library: [more inside]
What's new in Ruby 3.0?
Ruby 3.0 is finally here! The big new features this time are support for static analysis and the new concurrency features. Here are some of the highlights of this release. [more inside]
Turbo Streaming really is magic!
Here is the second installment of my attempt to use HOTWire in a complicated, real world app. Today, I look at adding Turbo Streaming to the previous tutorial. It’s amazing how it integrates into the existing Rails stack, and adds so much interactivity with very little extra work. [more inside]
Kafka for Rubyists Mini-Course: Consuming and Performance
After the first part covering Kafka and Karafka fundamentals, it would be a time for the second part about consumers and some potential performance issues. [more inside]
Ruby 3.0 comprehensive changelog
The Ruby Changes (open, structured, explained and cross-linked changelogs for Ruby) updated to include all Ruby 3.0 changes with all the “why”s, “how”s and links to docs and discussions!
Day 25 - hexapdf @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Thomas Leitner for the twenty fifth write-up in the Ruby Advent Calendar 2020: Day 25 - hexapdf Gem - Read and Write PDF Documents. Start from Zero or Merge, Extract, Optimize and Much More. Cheers. Prost. Happy Holidays. Merry Christmas.
RubyNext 0.11.0: Ruby 3.0 support and shorthand kwarg syntax
This RubyNext release is dedicated to the upcoming release of Ruby 3.0. [more inside]
Day 24 - git_reflow @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Valentino Stoll for the twenty fourth write-up in the Ruby Advent Calendar 2020: Day 24 - git_reflow Gem - Automate Your Git Workflow for You and Your Team. Build Your Own Git (Command Line) Commands @ Ruby Advent Calendar 2020 / 25 Days of Ruby Gems. Cheers. Prost
Building HHNPWA #1: Setting up for Top Stories
Follow along as we build the HOTWire Hacker News Progressive Webapp, or HHNPWA. This will build on the lessons from the Hacker News Progressive Web App, and will leverage all the enhancements that come from Turbo. In the end, you can compare the two, and decide for yourself what works.
Hotwire Tutorial
Hotwire is the newest magic which takes a different approach to building modern web applications without using much JavaScript. https://www.driftingruby.com/episodes/hotwire
Build a real-time Twitter clone with Hotwire & Rails
To see how Hotwire really compares, I’ve built a Twitter clone so you can see how it stacks up with other server-side reactive approaches. Watch the How to use Hotwire & Rails to build a Twitter clone screencast
Day 23 - json-next @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, the twenty third write-up in the Ruby Advent Calendar 2020: Day 23 - json-next Gem - Read Next Generation JSON Versions (HanSON, SON, JSONX/JSON11, Etc) with Comments, Unquoted Keys, Multi-Line Strings, Trailing Commas, Optional Commas, and More @ Ruby Advent Calendar 2020 / 25 Days of Ruby Gems. Cheers. Prost
The Beginner's Guide to Bundler and Gemfiles
Using a real-world example of bad documentation, we learn how Bundler and Gemfiles work by working through the errors.