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.
Benchmarking Ruby 2.6 to 3.2
My yearly blog post about Ruby performance: https://gettalong.org/blog/2022/benchmarking-rubies.html
How to use JavaScript upload libraries with Active Storage
We use FilePond, a drag-drop JS upload library, and integrate it with Active Storage in this tutorial: https://codewithrails.com/filepond-active-storage
Hanami v2.0.2
Official support for Ruby 3.2 https://hanamirb.org/blog/2022/12/25/hanami-202/
Glimmer DSL for SWT 4.26.0.0
Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) has just had a major release for the quarterly update of the Eclipse SWT library, which is now up to version 4.26. Glimmer DSL for SWT now matches it with version 4.26.0.0. [more inside]
artq gem Update - Download "On-Chain" Layers / Artwork for Your Own Characters
Hello, I updated the artq gem that let’s you download complete “on-chain” layers of artwork for your own “off-chain” character designers. To get you started I downloaded 20+ layers in the Art Factory Sandbox for easy (re)use. Tip: Use the artfactory gem to generate artwork (profile pictures) from the layers (via a spritesheet) and text prompts - no A.I. stable diffusion models required ;-). Happy pixel pushing with ruby. Cheers. Prost.
Abstract Feature Branch 1.3.2
abstract_feature_branch is one of the simplest and most minimalistic “Feature Flags” ruby/rails gems out there. It enables you to get started very quickly by simply leveraging YAML files without having to set up a data store if you do not need it (albeit, you also have the option to use Redis as a very fast in-memory data store). [more inside]
Ruby Split Array
Split is a very common method not only in Ruby, but also in the programming world. Let’s see what does .split means for a Ruby Array. [more inside]
Measuring Page Speed with Lighthouse and CI/CD
If time is money, page speed is revenue. Integrating Lighthouse into your CI/CD pipeline brings valuable insights to make speed a priority during development. [more inside]
Glimmer Competition
This is a courtesy reminder of the Glimmer Competition deadline (3 weeks away). Build a code editor native desktop app in Glimmer DSL for LibUI (Ruby Desktop Development GUI Library) by Jan 15, 2023. It’s a fun educational task to do during the Christmas/New-Year break! [more inside]
content_for :devs - A new podcast from rubyists!
I’ve started Hanami Mastery in the spirit of inspire others to blog more. Today we’re taking this idea to the next level by releasing the first episode of “content_for :devs” podcast! [more inside]
Easily configure styles and apply them as classes with class_variants
We ❤️ Tailwind CSS, but sometimes it’s challenging to manage the state of some elements using conditionals. class_variants is a tiny helper that should enable you to create, configure, and apply different variants of elements as classes.
Planet Ruby & Ruby Code Commons (COCOS) Year 2022 In Review
Hello, as a long time ruby volunteer I try to contribute by managing the Planet Ruby and the (newer) Ruby Code Commons (COCOS) orgs. Believe it or not in 2022 I got perma banned on ruby-talk after getting perma banned last year on reddit ruby. And yes, so far not a single contribution on Planet Ruby or Ruby Code Commons (COCOS) in 2022. Such is the health of the ruby community in 2022. What’s your experience? Is ruby dead or dying (if you are off-rails)? Discuss. Please, share your thoughts or commentary.
Trailblazer 2.1.2 bringing the Each() macro.
The new version of Trailblazer adds loops in operations, composable filters for step input and output, and even a cool IDE! Here’s the blog post.
Scale your app with slices! | Hanami Mastery #36
How to reduce the technical debt when the application grows in Hanami? Use slices, as the key feature to revolutionize the way you think about web applications in Ruby. [more inside]
A Guide to Memoization in Ruby
Discover the benefits of memoization for your Ruby application, common mistakes to avoid, and when not to memoize. [more inside]
Applicative programming in Ruby: railway reimagined
In this post we will see how applicative programming can be used for implementing code in the Railway style using a gem applicative-rb.
Rails 7.1 supports password challenge via has_secure_password
From Rails 7.1, has_secure_password now includes a password_challenge accessor to validate it against the currently persisted password. Check out more on this here.
Rails console command made easier
A short article about how to simplify the Rails console command thanks to the aliases file. [more inside]
This Week In Rails Wrapped: An Overview Of Rails 7.1 Features. Part I.
A detailed overview of some of the features coming to Rails 7.1. This is part 1 of 3.
ethname gem - Free Crowd-Sourced "Off-Chain" Eth(erum) Name Service / Helper
Hello, in the ongoing ruby crypto winter series I put together another little gem, that is, ethname - a light-weight crowd-sourced “off-chain” ethereum name to (contract) address service / helper (incl. punks v1,v2,v3,v4; phunks v1,v2, synth punks, punk blocks, etc.). Yes, you can! Add more names / contracts via git (hub) ;-). Happy data wrangling / processing and blockchaining with ruby. Cheers. Prost.