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 multithreaded crawler
A Ruby multithreaded crawler is a type of web crawler that is built using the Ruby programming language and is designed to use multiple threads to crawl and process multiple pages concurrently. This can help to improve the speed and efficiency of the crawler, as it can process multiple pages at the same time rather than having to crawl and process them sequentially. [more inside]
Database Performance Optimization and Scaling in Rails
Improve your Rails application’s performance by fine-tuning and scaling your database:
synthpunks gem - (Free Unlimited) 24×24 Pixel (Synthetic) Punks For Everyone
Hello, inspired by the “on-chain” Synthetic Punks V1 by Stephan Cilliers I put together a “off-chain” synthpunks gem / library in ruby that lets you generate (free unlimited) pixel punks using the same pseudo-random formula and spritesheet for any (ethereum) address (or any 40-digit / 20-byte hexstring really.) Bonus: Add your own backgrounds or derive your own set of default profile pics and more. Happy pixel pushing (“off-chain”) with ruby.
A First Look at Hanami 2 for Ruby
Let’s look at what Hanami 2.0 brings in terms of slices, dependency management and performance.
Social Login in Rails with Rodauth
The rodauth-omniauth gem is a much more integrated solution for social login compared to what Devise offers, see how to set it up in a Rails app in this article.
Hanami v2.0.1
Small enhancements and bug fixes
Rubber Duck Dev Show Episode 67 | What Happens After RubyCritic with Ernesto Tagwerke
In this episode, we discuss what happens after you run RubyCritic and see all the code recommendations with Ernesto Tagwerker:
[Screencast] Stimulus Outlets API
Outlets let you reference Stimulus controller instances and their controller element from within another Stimulus Controller by using CSS selectors. In this episode, we look at a simple example and then refactoring some older code where we used some workarounds to communicate with other stimulus controllers. https://www.driftingruby.com/episodes/stimulus-outlets-api
Easy to Miss Way to Optimize ActiveRecord SQL Memory Usage in Rails
By default, Rails ActiveRecord executes most of the SQL queries in a non-optimal way. In this blog post, I’ll describe how to fix this issue to speed up bottlenecks and reduce memory usage. [more inside]
Building Native GUI Apps in Ruby - RubyConf 2022 Talk Slides
RubyConf 2022 talk slides for “Building Native GUI Apps in Ruby” have been posted, including a mention of a new Glimmer DSL for LibUI release that finally leverages a newer version of the C libui library, supporting a new open_folder dialog: [more inside]
pixelart Gem In Action - Turn Punks Into Default Profile Pictures (PFPs)
Hello, a little experiment in the ongoing pixel art programming in ruby series. The idea - let’s turn pixel punk heads into default profile pic(ture)s via Image#silhouette (from the pixelart gem). Bonus: Use Image#circle (from the pixelart gem) to “round out” the square (profile picture) image. See Yes, You Can - Generate Your Own Default Profile Pics (PFPs) @ Punk’s Not Dead for do-it-yourself (d.i.y.) examples and (ruby) scripts.
Ruby's flip/flop operators
Code snippet about the flip/flop operator SEE CODE SNIPPETS
A zero-dependency Ruby CLI boilerplate class (with boilerplate tests)
Have you ever wanted to add a simple CLI to one of your small Ruby libraries, but did not want to add the dependency for thor or some other CLI library/framework? Well now you can copy this boilerplate code for a zero-dependency Ruby CLI class! Features include:
Active Record Slotted Counters
This gem implements the slotted counter pattern for Active Record counter caches with the compatible interface (so you can you belongs_to ..., counter_cache: true as before).
Ruby is a Multi-paradigm programming language
Even if Ruby is a fully Object-Oriented Programming language, it can also be interpreted through some other specific prisms.. SEE MORE
Tips and Tricks about Ruby
Learn advanced notions & tricks with our cards.
Safe gem upgrades with Pessimize gem! | Hanami Mastery #035
In this episode of Hanami Mastery, we’re showing how to avoid unexpected gem updates, when you need to bump versions on large projects. [more inside]
Keep DB schema clean and consistent between branches
This post describes a common issue you can have while developing a Rails app switching between branches
Better Rails authentication implementation with Authentication Zero
Wrote a blog post on how to create a full authentication easily with the Authentication Zero gem: