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.
Making GitHub Pages Work With Jekyll 4+ and Any Theme and Plugin
If you use the github-pages
gem, you’re limited to Jekyll 3.9.0 and a limited set of themes and plugins, but with GitHub Actions, you can use the latest and greatest, and any theme or plugin you want. This tutorial shows you how step by step. [more inside]
Ruby Blockchain Week 2021, January 3rd to 9th - 7 Days of Crypto Gems Upcoming
Hello, as a follow-up to the Ruby Advent Calendar - join us in the new year in 2021 and claim a free day in the upcoming Ruby Blockchain Week 2021, January 3rd to January 9th - 7 Days of Ruby (Crypto) Gems. Why not highlight a blockchain / cryptos gem with your write-up in the ruby universe? Yes, you can! All welcome from no coiners to bitcon austrian school of economics “I HODL! You HODL! We HODL! Number Go UP!” maximalists to universum is the new ethereum world computer blockchainers. Cheers. Prost.
StatusCode: Our Weekly Programming Newsletter
You’re not just a Rubyist, you’re a software developer, right? :-) Check out StatusCode Weekly, our language and architecture agnostic newsletter that covers the biggest news across the entire software development world.
Russian Doll Caching - Building the HOTWire HNPWA #4
What if we can increase page load the speed by not duplicating work in the server rendering process? Russian Doll Caching describes layers of caching. Start from the smallest element, and then wrap it in bigger and bigger layers of caching, punching through to invalidate the cache with model updates. https://onrails.blog/2020/12/29/russian-doll-caching-building-hotwire-hnpwa-4/
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 - https://gettalong.org/blog/2020/benchmarking-rubies.html
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. https://onrails.blog/2020/12/23/building-hhnpwa-1-setting-up-for-top-stories/