Nam Vo Website
I developed this website to
share my knowledge and satisfy my coding passion
LATEST BLOG
Optimizing Bulk Create Operations in Rails
Recently, my team ran into performance issues while handling bulk CUD (Create, Update, Delete) operations in a Rails application.Active Record provides validations and callbacks, which are excellent tools for maintaining data consistency. Rails contr...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
Make Our Utils Functions Immutable
I chose JavaScript for this blog because it has both mutable and immutable objects and methods, while language like Haskell enforces immutability everywhere1. Mutable vs Immutable Objects and MethodsWhen we say an object is immutable, we mean i...
Software Engineer
Software Engineer
Top blogs
Explore the most popular blog posts. View all
Common Mistakes When Using Sidekiq
Sidekiq is a popular background job processing library for Ruby that allows you to offload time-consuming tasks from your main application thread. While Sidekiq can significantly improve the performance and responsiveness of your application, it's es...
Ruby on Rails
Ruby on Rails
How to customize YJIT in the Rails app
In this post, we'll dive into what YJIT is, how to enable it in your Rails app, and how to monitor and configure it for optimal performance.What is YJIT?YJIT is a lightweight Just-In-Time (JIT) compiler introduced in Ruby to speed up method execution...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
Custom Fullscreen Button: A Cross-Browser Solution
Fullscreen functionality is a common requirement in web development, especially with media elements like custom video player. In this blog post, I'll share my experience working with fullscreen APITL;DRNote: On iOS browsers, the element must be a vid...
Frontend
Frontend
Rails 7.2+: How to show all model attributes in Rails Console
With the release of Rails 7.2, a new change was introduced to the way ActiveRecord models are inspected in the Rails console. Prior to this version, calling inspect on an ActiveRecord model instance would display all the model's attributes by default...
Ruby on Rails
Ruby on Rails