Sorting Algorithms in Ruby

Learn about sorting algorithms in Ruby, including bubble sort, selection sort, insertion sort, quick sort, and merge sort, with examples and comparisons of their performance.

July 13, 2024 · 7 min · 1348 words · Bá Tới

Keyword ThreadGroup in Ruby

Keyword ThreadGroup in Ruby

June 10, 2024 · 5 min · 887 words · Bá Tới

Keyword Queue in Ruby

Keyword Queue in Ruby

June 10, 2024 · 6 min · 1140 words · Bá Tới

Keyword Lazy in Ruby

Keyword Lazy in Ruby

June 10, 2024 · 4 min · 803 words · Bá Tới

Read Large File in Ruby

In this article, we will discuss how to read a large file in Ruby. We will cover different methods to read large files efficiently and handle memory issues when working with large files.

May 11, 2024 · 4 min · 759 words · Bá Tới

StringIO in Ruby

In this article, we will discuss how to use StringIO in Ruby to work with in-memory strings as if they were files. We will cover how to create StringIO objects, read from and write to them, and use them in place of file objects in Ruby.

May 11, 2024 · 4 min · 783 words · Bá Tới

Implement Rate Limiting in Ruby on Rails

Rate limiting is a common technique used to control the rate of incoming requests to a web application and prevent abuse or overload. Learn how to implement rate limiting in a Ruby on Rails application using middleware and Redis.

May 2, 2024 · 8 min · 1684 words · Bá Tới

Gem OJ - Enhance API Performance in Ruby on Rails

Learn how to optimize your API responses in Ruby using the OJ gem. OJ provides fast JSON serialization and deserialization, making it an excellent choice for improving the performance of your Ruby applications.

May 1, 2024 · 4 min · 664 words · Bá Tới

Improve Redis Performance in Ruby on Rails

Optimizing Redis performance in Ruby on Rails applications is crucial for enhancing response times and reducing latency. Learn how to improve Redis performance by implementing connection pooling, leveraging the Hiredis client library, and monitoring Redis operations.

May 1, 2024 · 4 min · 690 words · Bá Tới

Design Patterns in Ruby: Prototype, Abstract Factory, Bridge, and Facade Patterns

In this article, we explore more design patterns in Ruby, including the Prototype, Abstract Factory, Bridge, and Facade patterns, and discuss how they can be applied to create elegant, maintainable code.

April 18, 2024 · 4 min · 852 words · Bá Tới