#Ruby
25 articles
Understanding IO and CPU Characteristics in Ruby and Rails
Understand Ruby GVL, Puma concurrency, IO-bound vs CPU-bound workloads, thread/process tuning, and GC impact on Rails performance.
Differences Between Instance Variables, Class Variables, and Class Instance Variables in Ruby
Summarizing the differences between instance variables, class variables, and class instance variables in Ruby.
Implementing Singleton Pattern in Ruby
A summary of how to implement the Singleton pattern in Ruby.
Metaprogramming Ruby 2nd Edition
Metaprogramming Ruby 2nd Edition
Practical Ruby Programming: Principles and Trade-offs for Effective Code
Practical Ruby Programming: Principles and Trade-offs for Effective Code
Code Reading of Pundit
Understand Ruby Pundit authorization framework through code reading, exploring permission policies and authorization mechanisms.
Code Reading of irb
Explore the inner workings of Ruby's interactive shell (irb) and understand its startup process, history loading, and command execution.
Code Reading of reline
Examine reline Ruby library internals through code reading: readline calls, line editing, and text input buffering mechanics.
RSpec Code Reading
Analyze RSpec framework internals: runner invocation, test execution flow, and result reporting mechanisms for Ruby testing.
Ruby Code Recipe Collection
Ruby Code Recipe Collection
Code Reading of Sidekiq
Understand Sidekiq architecture for Redis-based asynchronous job queuing, job enqueuing, and execution flow in Ruby applications.
Ruby on Rails Code Reading Part 3 - Invoking WelcomeController
Documenting the code reading process for Ruby on Rails.
Ruby on Rails Code Reading Part 1 - Rails Startup
Trace Rails startup sequence from command invocation through Rackup, Puma server initialization, and request handling flow.
Ruby on Rails Code Reading Part 2 - Rails Request Processing
Recording the code reading work of Ruby on Rails.
Learning Ruby
Master Ruby fundamentals using official documentation, classic books, object-oriented design patterns and practical implementation practice.
About Ruby Block Syntax
Learn Ruby block syntax with do..end and {} forms, passing blocks to methods, yield statements, and Proc/lambda closure behavior.
About Ruby Modules
Understand Ruby modules for namespacing, mixin multiple inheritance, and providing common methods without class instantiation.
About Ruby's Proc and Lambda
Compare Ruby Proc and Lambda differences in argument handling, return behavior, and jump statement semantics for closures.
About Ruby's Singleton Classes and Singleton Methods
Explore Ruby singleton classes, singleton methods, class methods, and object-specific method definitions for advanced metaprogramming.
About Ruby Symbols
Understand Ruby symbols as memory-efficient, immutable identifiers for hash keys, method names, and enum-like constants.