June 13, 2025 It's Friday. You're almost done. You just want to test an idea, run a quick prototype, or help a friend without messing up your local environment. So... enter one-liners. The kind that saves your day (and your weekend). Spin up a full Ruby app using Docker. No setup. No fuss. Just run … Continue reading 𧨠One-Liners That Get You Back to Your Weekend (Fast Ruby Project Starters)
Category: Programming
π Understanding Rubyβs Method Lookup Algorithm: A Must for Every Developer
Understanding Rubyβs Method Lookup Algorithm: A Must for Every Developer June 12, 2025 If youβve spent some time working with Ruby, youβve probably run into situations where a method is being called... but youβre not quite sure where itβs defined. Is it in the class itself? A superclass? An included module? Behind this magic is … Continue reading π Understanding Rubyβs Method Lookup Algorithm: A Must for Every Developer
π PicoRuby: Bringing Ruby to Microcontrollers and the Edge of IoT
June 11, 2025 In the world of embedded systems, performance and size matter. But what if we could write microcontroller logic in a language we love β like Ruby? That's the promise of PicoRuby: a lightweight implementation of Ruby, designed to run on tiny chips like the Raspberry Pi Pico and even the ESP32. I … Continue reading π PicoRuby: Bringing Ruby to Microcontrollers and the Edge of IoT
Understanding config/database.yml in Ruby on Rails
Understanding config/database.yml in Ruby on Rails June 11, 2025 The config/database.yml file is a core part of any Ruby on Rails application. It defines how Rails connects to the database in various environments (development, test, production), and it's often the first touchpoint when configuring an application's data layer. Let's explore how this configuration file works, … Continue reading Understanding config/database.yml in Ruby on Rails
π Securing Your Ruby Apps with bundler-audit
June 10, 2025 In todayβs world of frequent security breaches, keeping your Ruby applicationβs dependencies secure is non-negotiable. Thatβs where bundler-audit steps inβa powerful command-line tool that scans your Gemfile.lock for known vulnerabilities and insecure gem sources. π What is bundler-audit? bundler-audit checks your project for: Vulnerable versions of gems (by comparing with the ruby-advisory-db) … Continue reading π Securing Your Ruby Apps with bundler-audit
π Building a Ruby on Rails API with Swagger Documentation: A Practical Guide
Building a Ruby on Rails API with Swagger Documentation: A Practical Guide June 10, 2025 As developers, we often find ourselves building APIs that need to be consumed by mobile apps, front-end frameworks, or third-party services. A well-structured, documented, and maintainable API is essential for seamless integration and long-term scalability. In this article, Iβll walk … Continue reading π Building a Ruby on Rails API with Swagger Documentation: A Practical Guide
Generating Executable API Documentation for Ruby on Rails with RSwag
June 9, 2025 A structured exposition with illustrative examples Abstract Accurate, current, and machine-readable documentation is a prerequisite for reliable consumption of web APIs. While manual Swagger (OpenAPI) definitions quickly diverge from production behaviour, RSwag bridges this gap by synthesising documentation directly from integration tests written in RSpec. This article (i) situates RSwag within the … Continue reading Generating Executable API Documentation for Ruby on Rails with RSwag
Supercharging Ruby with Embedded TypedData Objects
June 7, 2025 Ruby continues to evolve, balancing its expressive elegance with a growing focus on performance. One of the latest improvements introduced in Ruby 3.3 is embedded TypedData objects, a low-level optimization with impressive results. This advancement, developed by Peter Zhu and Jean Boussier, is already paying dividends in core Ruby operationsβand soon, third-party … Continue reading Supercharging Ruby with Embedded TypedData Objects
Simulating External APIs in RSpec: A Clean Approach Using WebMock
June 6, 2025 Abstract When testing systems that depend on external services, such as geolocation APIs, simulating HTTP responses becomes essential for building deterministic and isolated test suites. This article explores a disciplined approach to mocking HTTP calls in RSpec using WebMockβwithout relying on custom helpers or implicit abstractions. Instead, we emphasize clean code principles: … Continue reading Simulating External APIs in RSpec: A Clean Approach Using WebMock
π§Ό Skinny Controllers, Fat Models β A Classic Ruby on Rails Guideline
June 5, 2025 In the world of Ruby on Rails, few principles have stood the test of time like the mantra: βSkinny Controllers, Fat Models.β While it may sound quirky, this simple phrase encapsulates a deep architectural philosophy that encourages maintainability, clarity, and clean code β the Rails way. β What It Really Means The … Continue reading π§Ό Skinny Controllers, Fat Models β A Classic Ruby on Rails Guideline









