Application
223 articles
How to Write Code That Fits in the Brain: Rules and Techniques for Avoiding Complexity and Ensuring Sustainability
A review of How to Write Code That Fits in the Brain. A book that shares practical practices for writing code that fits in a person's working memory. Centered on field-honed rules of thumb rather than cognitive-science theory, it offers concrete techniques for avoiding complexity and keeping code sustainable.
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. It introduces ways to guarantee that only one instance of a class exists, using the standard Singleton module, class methods, and constants, so that a single instance can be managed in a thread-safe manner.
Metaprogramming Ruby 2nd Edition
A review of Metaprogramming Ruby, 2nd Edition. A book for learning the mechanisms and uses of Ruby metaprogramming. Through the object model and dynamic features, it reveals the nature of Ruby magic, while making clear that truly mastering it takes real effort.
Tidy First? ―Experiential Software Design for Individuals
A review of Tidy First? Kent Beck's thin but dense book that makes you consider when to tidy your code. From the perspectives of coupling and cohesion, and cost and benefit, it frames tidying decisions empirically. Its arguments are concise and clear.
Practical Ruby Programming: Principles and Trade-offs for Effective Code
A review of Polished Ruby Programming. A book for those who, having finished the primers, want more practical knowledge. Tracing what Ruby-like code looks like through the lens of principles and trade-offs, it conveys Ruby's appeal while also teaching design ideas that transcend the language.
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
A review of Ruby Code Recipe Collection. A book that compiles what you can do in Ruby and common patterns as a recipe collection. Written clearly and concisely, it is just right for beginners learning Ruby to build up their repertoire.
Cursor Pagination vs Offset Pagination: Which Should You Choose?
Compare cursor-based and offset-based pagination. Learn the performance implications, when to use each approach, and how to implement cursor pagination in SQL.
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
The third installment of my code reading notes for Ruby on Rails. Using a project created with rails new, it traces how a request flows through routing until the action of the WelcomeController is invoked, following the request handling step by step.
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
The second installment of my code reading notes for Ruby on Rails. Using a project created with rails new, it follows how Rails processes a single request from the moment it arrives until a response is returned, tracing the flow of request handling through the framework.
Books to Learn About API Design
Discover recommended books on API design: fundamentals, design phases, testing strategies, and practical design patterns.
Relearning the Basics of TypeScript
A set of notes from revisiting the fundamentals of TypeScript. Starting with a review of JavaScript basics such as variable scope, it works through TypeScript's type system and core syntax, organizing the key points and practical takeaways.
Building & Pushing Docker Images with GoReleaser
Automate Docker image builds across multiple platforms using GoReleaser with GitHub Actions for streamlined CI/CD deployment.
Learning Ruby
Master Ruby fundamentals using official documentation, classic books, object-oriented design patterns and practical implementation practice.