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
Tag: Ruby
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
Understanding Data Structures and Method Operations: A Key to Efficient Software Development
June 4, 2025 In the realm of software engineering, data structures form the fundamental backbone upon which efficient and scalable applications are built. Equally important are the methods β or algorithms β that operate on these data structures, enabling us to manipulate, access, and transform data effectively. The Importance of Data Structures Data structures are … Continue reading Understanding Data Structures and Method Operations: A Key to Efficient Software Development
Automating Document Generation with AI in Ruby on Rails
June 3, 2025 In modern software projects, automating routine tasks is crucial to speed up delivery and reduce human error. One great example is document generationβwhether it's product requirement documents (PRDs), proposals, or presentations. Recently, I worked on a system that uses AI to generate structured content from conversations, then outputs documents in multiple formats … Continue reading Automating Document Generation with AI in Ruby on Rails
Building a Microservice Architecture with Ruby: A Practical Guide
June 2, 2025 Introduction Modern applications increasingly adopt a microservice architecture to address scalability and maintainability concerns. This approach breaks down a system into independent, self-contained services, each responsible for a specific domain. Ruby, renowned for its developer-friendly syntax and productivity, provides an excellent foundation for developing microservices, particularly when leveraging the Ruby on Rails … Continue reading Building a Microservice Architecture with Ruby: A Practical Guide
π² Generating Valid WhatsApp Numbers with Ruby: A Practical Approach to International Number Parsing
May 30, 2025 Abstract In a globalized digital world, correctly formatting phone numbers for messaging platforms like WhatsApp is both a usability and technical necessity. This article demonstrates how to build a robust Ruby script that parses international phone numbers, validates them, and generates direct WhatsApp links β combining the power of Phonelib and countries … Continue reading π² Generating Valid WhatsApp Numbers with Ruby: A Practical Approach to International Number Parsing
π Method Naming Conventions in Ruby and Rails ( ? ! _ )
May 29, 2025 Abstract In modern software development, method naming conventions are crucial for ensuring readability, maintainability, and expressiveness in codebases. This article explores Ruby and Rails method naming conventions, examining their patterns, underlying philosophy, and implications for software design. By dissecting core suffix patterns, Rails-specific idioms, and best practices, we aim to elucidate the … Continue reading π Method Naming Conventions in Ruby and Rails ( ? ! _ )
π Monkey Patching in Ruby: What It Is and Why You Should Be Careful
May 28, 2025 Monkey patching is a powerful and controversial technique in Ruby. It involves reopening existing classes and modifying or adding methods directly. Letβs dive into what it is, why it can be problematic, and some better ways to achieve similar goals. What is Monkey Patching? In Ruby, you can add or change the … Continue reading π Monkey Patching in Ruby: What It Is and Why You Should Be Careful
The Pitfalls of Overusing rescue in Ruby (and How to Do It Right)
May 27, 2025 Iβve seen a lot of Ruby code over the years β some elegant, some messy, and some that made me pause and ask, βWhy is this even working?β π Enhance Your Ruby Appβs Error Handling! Looking to improve error reporting and exception handling in your Ruby applications? Letβs connect and make your … Continue reading The Pitfalls of Overusing rescue in Ruby (and How to Do It Right)
How to Use APIs in Ruby: A Step-by-Step Guide with Faraday, HTTParty, and Net::HTTP
May 26, 2025 If you're a Rubyist like me, you know that making an API call can go from a quick one-liner to a full-blown production-ready beast β and everything in between! Letβs take a journey through the best-to-least optimal approaches for making API calls in Ruby, with a dash of humor to keep us … Continue reading How to Use APIs in Ruby: A Step-by-Step Guide with Faraday, HTTParty, and Net::HTTP









