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.
Building a New Programming Language in Ruby: Wrapping Up
The conclusion to Alex Braha Stoll’s 5-part series on how to build a toy programming language in Ruby. https://www.honeybadger.io/blog/ruby-stoffle-conclusion/
Using block-reference instead of yield + block_given?
https://www.rubycademy.com/cards/ruby-block-reference
Rubber Duck Dev Show Episode 68 | Should You Store Business Logic In Your Database?
In this episode of the Rubber Duck Dev Show, we discuss whether you should store business logic in your database: https://www.rubberduckdevshow.com/episodes/68-should-you-store-business-logic-in-your-database/
Deploying Rails and Sidekiq to Render
Here’s manual steps as well as IaC blueprint to deploy a Rails application to Render (including a Sidekiq worker).
Elixir-style Pipelines in 9 Lines of Ruby
Elixir pipelines are an elegant construct for sequencing operations in a readable way. Fortunately, 9 lines is all it takes to implement them in Ruby. [more inside]
Does A Bytes (ByteArray) Class in Ruby Make Any Sense - Why? Why Not? Discuss.
Hello, while hashing “to-the-metal” byte arrays in ruby I am revisiting / reworking the bytes gem that offers a new Bytes (ByteArray) class as a “type-safe” alternative to the String class with ASCII_8BIT / BINARY encoding. Did you know? A ruby string might be a frozen string, a string buffer, a character, a bytearray, or you name it ;-). Anyways, if anyone has any comments or tips & tricks on how to work with bytearrays (bytes) in ruby, please tell / share.
Tonic 🍸- New release with remote collections and more
A new version v0.9.0 of Tonic has been released! It essentially includes a couple of cool new features: [more inside]
A new gem: digest-lite -- more crypto(graphic) hash functions / classes in pure ruby
Hello, I put together for easy (re)use a new stand-alone gem, that is, digest-lite that includes more crypto(graphic) hash functions / classes e.g. Digest::KeccakLite (512bit, 256bit, etc), Digest::SHA3Lite (512bit, 256bit, etc) in “100% pure” ruby “lite” scripts, that is, without any c-extensions and with zero-dependency. Cheers. Prost.
A new gem: validation_errors
Validation errors happen. In some applications it might be interesting to keep track of them. This gem helps you keep track of the ActiveRecord validation errors that have been triggered on a model. [more inside]
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