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.
Responsibility On Rails
Being a web-developer is one of the coolest jobs in the world. It brings freedom and growth opportunities like no other job in the world. It’s easy to just enjoy the fruits of this craft. But remember with great benefits comes great responsibility. In this article let’s explore possible negative consequences of trying random cool stuff [more inside]
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: https://blog.appsignal.com/2022/12/07/database-performance-optimization-and-scaling-in-rails.html
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. https://blog.appsignal.com/2022/12/06/a-first-look-at-hanami-2-for-ruby.html
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 https://hanamirb.org/blog/2022/12/06/hanami-201/
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: https://www.rubberduckdevshow.com/episodes/67-what-happens-after-rubycritic-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
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. https://www.rubycademy.com/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