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
Solving the "must appear in the GROUP BY clause" Error in Rails and PostgreSQL
This blog will give an example of how to resolve this common error when using group_by in Active Record1. Example problemFirst, take a look at this SQL problem. Imagine you're working on a booking application where users can have multiple sessions. Y...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
Interpreted vs Compiled Programming Languages
Programming languages serve as powerful tools for developers to create software applications and bring their ideas to life. Behind the scenes, these languages are executed by either compiling or interpreting processes. In this blog, we will explore t...
Software Engineer
Software Engineer
How to get table index size in PostgreSQL
Indexes play a crucial role in enhancing the performance of database queries. They allow for faster data retrieval by creating a separate data structure pointing to the data stored in a table. However, indexes come with a cost in terms of disk space ...
Software Engineer
Software Engineer
How to restore scroll position in React Router 6
When developing a Single Page Application (SPA) with React and React Router V6, I encountered a scroll restoration issue. When I go to the new page, the scroll position persists instead of being on the topReact Router V6 offers a ScrollRestoration co...
Frontend
Frontend