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.
N1Loader is alive as ever!
Today, I have addressed all issues and feature requests. [more inside]
Ruby Step-By-Step Guide - Collections - Inside Ordinal Punks, D.I.Y. Punks & Frens
is it ordinal summer? i’ve updated the free (online) programming ordinals (in ruby) step-by-step guide / booklet. the second chapter titled Collections, Collections, Collections - Inside Ordinal Punks, D.I.Y. Punks & More shows you how to import collections via various meta datafile formats into a (local) sqlite database e.g. ord.db (from scratch / zero) and than query for analytics / statistics via sql (using activerecord) and the ordlite gem. happy programming (and data analytics) with ruby.
Using DynamoDB in a Rails app
Unlock the true potential of your Rails app with DynamoDB, the lightning-fast and scalable NoSQL solution from Amazon. Revolutionize your data storage today and take your Rails app to new heights of speed and efficiency. Dive into this guide at https://psmy.medium.com/revolutionize-your-rails-app-with-dynamodb-unleash-speed-and-scalability-f899316964b7.
RailsNotes — The Newsletter for Ruby on Rails lovers 📬
I’ve started a Ruby on Rails Newsletter — The RailsNotes Newsletter — let me know what you think! Issue #4 is being sent soon, so subscribe if you’re interested.
Supercharge your Stimulus controllers with Custom APIs
Learn how to create a Stimulus Elements API from scratch, allowing you to easily access DOM elements using CSS selectors. [more inside]
Using Server-Sent Events (SSE) to Stream Data in Rails
Learn what Server-Sent Events are and how to use them with Ruby on Rails and a bit of JavaScript. [more inside]
Using Concerns with Ruby on Rails
Rails Concerns are a great way to keep your code DRY by making it easy to share code across Modules and Classes. The post will be going through some of the in-and-outs of Concerns, why they’re useful and how to use them. [more inside]
An Introduction to Metaprogramming in Ruby
Explore some of the fundamentals of metaprogramming in Ruby: https://blog.appsignal.com/2023/07/26/an-introduction-to-metaprogramming-in-ruby.html
Simple Lazy Loading in Rails with Hotwire and Turbo Frames 😴
Hey, I just published an article all about lazy loading with Hotwire and Turbo Frames in your Ruby on Rails apps. [more inside]
How to organize CSS in a Rails project
CSS has a reputation for inevitably turning into spaghetti code. It doesn’t have to be that way! You can keep styles tidy in your next Rails app by applying similar rules to CSS as you would to Ruby code: avoid formal structure until you really need it, be clear and concise in your naming, and keep your eyes open for opportunities to refactor as you go. https://mattbrictson.com/blog/organizing-css-in-rails
Moving data out of our database and into....s3!
We were (stupidly) storing tons of data in the database that really didn’t need to be there. See what we did to move it out of the database. So simple! https://psmy.medium.com/optimizing-data-storage-in-ruby-on-rails-a-seamless-migration-from-database-to-aws-s3-910f27fa0029
online_migrations 0.8.0
Released a new version of the gem for zero downtime migrations - https://github.com/fatkodima/online_migrations/blob/master/CHANGELOG.md#080-2023-07-24 with a few new checks:
Scarpe Diem With Nick Schwaderer | Rubber Duck Dev Show 93
In this episode, we discuss Scarpe which is a successor to the Shoes Ruby desktop application builder with Nick Schwaderer: https://www.rubberduckdevshow.com/episodes/93-scarpe-diem-with-nick-schwaderer/
Ruby Step-By-Step Guide - Sub 1k - Inside The First Thousand Ordinal Inscriptions
is it ordinal summer? i’ve started on a free (online) programming ordinals (in ruby) step-by-step guide / booklet. the first chapter titled Sub 1k - Inside The First Thousand Ordinal Inscriptions shows you how to build a (local) sub1k sqlite database (from scratch / zero) - it’s about 40 MB - and than query for analytics / statistics via sql (using activerecord). happy programming (and data analytics) with ruby.
Rails' Sixth Sense: Unravelling the mystery of the autoloaders
A two-part series on how file autoloading works in Rails (including an explanation of what ‘zeitwerk’ really is) [more inside]
Passkey Authentication with Rodauth
Rodauth supports passkeys for multifactor authentication, or for passwordless login and registration – https://janko.io/passkey-authentication-with-rodauth/.
Simple guide to pessimistic locking in Rails
In the Rails world, optimistic locking is relatively well known, while its pessimistic alternative is often overlooked. In this blog post, I’m presenting how to effectively use pessimistic locking in Rails applications. https://www.visuality.pl/posts/a-simple-guide-to-pessimistic-locking-in-rails
Common Distance Metrics Implemented in Ruby
The fields of machine learning and artificial intelligence rely, fundamentally, upon the ability to measure the distance between two points. In this article we introduce some of the most common metrics used, discuss their interpretation and demonstrate how these can be implemented in ruby. Check it out here and let me know what you think.
MiniDefender Gem - Comprehensive Validation Gem for Rails
Mini Defender allows the developer to quickly and easily validate incoming requests data as the verify first step in the request, alongside this Mini Defender also provides the following benefits: [more inside]
"The Ruby on Rails Interview Bible 2023"
“The Ruby on Rails Interview Bible 2023” - A Comprehensive Guide with 500+ Essential Questions and Answers! #ruby #book #rails #interview #job #jobhelp #preparation #betterjob #itjobs #programmer #ebook #remotework #juniors #seniors https://nezirzahirovic.gumroad.com/l/bible
"🎓 Ready to master Ruby on Rails? Look no further! https://quiz.rubyonrails.ba
“🎓 Ready to master Ruby on Rails? Look no further! https://quiz.rubyonrails.ba offers 16 engaging games, 600 thought-provoking questions, and a vibrant community of 200 fellow learners. Join us today and unlock your Rails potential! 🚂💡 #WebDevelopment #RailsLearning #Ruby #Job”
Ruby's method-lookup path and Object Individuation
Objects seek their methods in both classes and superclasses, all the way up the inheritance tree; let’s see how this method-lookup process works when modules are also involved. [more inside]