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.
Programming DeFi: Uniswap V2. Part 2 - Ruby / Rubysol Ed.
hello, another little update from the rubidity & rubysol universe. this might be the world’s 1st article on rubysol (contract) programming: Programming DeFi: Uniswap V2. Part 2 written by Ivan Kuznetsov - and edited and the code changed to ruby / rubysol by my humble self. enjoy. PS: for reference the UniswapPairV2 contract, part ii in ruby / rubysol. From the article: Today we’ll add the core functionality to our clone of Uniswap V2–swapping. Decentralized tokens exchanging is what Uniswap was created for, and today we’ll see how it’s done. We’re still working on the core pair contract…
Preventing bugs in Ruby: tools of the trade
An overview of tools I found useful for preventing bugs when shipping Ruby code: Preventing bugs in Ruby: tools of the trade
Business Class kit goes 1.2
The Rails SaaS kit focused on integrating Merchant of Record payment providers goes v1.2. Now with Tailwind and GoodJob integration.
Polling vs WebSockets vs Server Sent Events (SSE) | Rubber Duck Dev Show 108
In this episode, we discuss the benefits and disadvantages of polling, WebSockets and server sent events (SSE):
Gem Credentials Management with Gemstash
When your Ruby project grows, you may use enterprise gems or want to extract some business logic into private gems. How can we efficiently manage gem credentials across the team? [more inside]
Rails Generator Command Builder GUI
Hey! I’ve built https://railsg.xyz , a GUI command builder for Rails Generator commands. For an example, check out the Rails Generate Controller page.
Grokking instance_eval
I wrapped my head around instance_eval recently, so I wrote up a short article illustrating how it’s used in Rails’ route config. [more inside]
programming (decentralized finance) uniswap v2 - ruby / rubysol edition started
hello, another little update from the rubidity & rubysol universe. i started to rewrite the uniswap v2 contracts and tests in Ivan Kuznetsov’s definite (free) in-depth (let’s rebuild the contracts from scratch) articles on Uniswap from solidity into ruby / rubysol. see Programming (Decentralized Finance - DeFi) - Uniswap V2 Contracts - Ruby / Rubysol Edition for more. happy blockchaining with ruby / rubysol. PS: for part i - see UniswapV2Pair.rb an the tests in test_UniswapV2Pair.rb.
Analysing Rubygems download trends since 2013
In this article I tried to analyse Rubygems trends since 2013 and discovered a huge increase from 3B to 135B in total number of downloads between 2019 and 2023
[ANN] rodauth-oauth 1.4.0 released
rodauth-oauth 1.4.0 has been released. [more inside]
Integration Patterns for Distributed Architecture - Kafka at Smily
In the last blog post, we covered some fundamental concepts about Kafka. This time, let’s discuss how we use Kafka in Smily, how we got where we are now, what the decision drivers were, and how the overall architecture has evolved over time. [more inside]
Hanami v2.1.0.rc2
Some final fixes and polish, along with a preview of our guides.
It's Never Been Better Time to Be a Full-Stack Developer
I write about how great Ruby On Rails is for a full-stack (solo) developer like myself. In particular with the advent of Hotwire, it’s never been a better time to be a full-stack developer -
Should I add typing to my Ruby project?
I’ve spent a lot of time recently investigating if I should adopt gradual typing in my Ruby projects and I’ve summarised my research in this post where I’ve picked 5 key criteria which I’ve seen mentioned most often by people that are using gradual typing successfully: Should I add typing to my Ruby project?
Added support of Rails 7.1 to actual_db_schema
Good news everyone! Today a new version (0.5.0) of the actual_db_schema (https://github.com/widefix/actual_db_schema) gem was released - Rails 7.1 support added. Huge thanks to Arkadiy Zabazhanov who made that impressive work -
Microservices Fails | Rubber Duck Dev Show 107
In this episode, we discuss how bad microservices can be:
Detect Spam with AI
We can create a small python service that uses a Large Language Model (LLM) to detect if a message is spam or not. Using this service, we can tie it into our Rails application so that any comment created will be evaluated for being spam or not. We explore a few different routes on handling any messages flagged as spam. https://www.driftingruby.com/episodes/detect-spam-with-ai
The anatomy of a Turbo Stream
Why and how does a Turbo Stream make the DOM change? What do Turbo Streams have to do with web sockets? This article goes into the answers to these questions.
uniswap gem v0.0.1 - core uniswap v2 (dumb) contracts for ruby (rubysol)
hello, another little update from the rubidity & rubysol universe. i started a new experiment to package up the uniswap (facetswap) contracts into a gem (and convert to “more ruby-ish” rubysol syntax for easier documentation / testing / etc.). for the auto-generated contract docu. see rubydoc.info/gems/uniswap and for a contract sample, see the (work-in-progress) UniswapV2Pair. as always questions and comments welcome. yes, you are invited to join the rubidity & rubysol coding (programming) club. let’s study and learn together how the (dex - decentralized exchange and amm - automated market making) magic works.
Montreal.rb 2023/10 Elevate Your RoR Views w/ ViewComponent & Lookbook
The video for our local Montreal.rb Ruby Meetup Talk for 2023/10 titled “Elevate Your RoR Views w/ ViewComponent & Lookbook” (by Parham Ashraf) has been posted! [more inside]
A Deep Dive Into LiteDB for Ruby on Rails
In the second part of this series on LiteStack, we’ll explore LiteDB in detail, including type affinity and flexible typing: