Blogs

Discover tech insights, tutorials, and coding tips

blog cover

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
published 2026-01-03 19:48:24 +0700 · 4 mins read
blog cover

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
published 2025-11-22 18:12:27 +0700 · 3 mins read
blog cover

Hello Golang: My First Steps to the Language

I’ve worked with Ruby in several projects, which is defined as "a programmer’s best friend" for its clean and English-like syntax. While my back-end experience is rooted in the Ruby on Rails framework, I prefer TypeScript for building CLI tools and s...
Software Engineer
Software Engineer
published 2025-10-18 19:05:21 +0700 · 6 mins read
blog cover

Reducing ActiveRecord Queries to Speed Up Your Requests

In Rails, ActiveRecord is one of the things that makes the framework so enjoyable to use. It reads almost like natural language and lets you write database logic in a clean, Ruby-style way.But every line of Active Record still turns into real SQL beh...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
published 2025-10-06 09:52:56 +0700 · 2 mins read
blog cover

Choose the Correct HTTP Status Codes for CRUD APIs

When building REST APIs, many people default to returning 200 OK for everything. But HTTP provides a rich set of status codes that communicate exactly what happened. Using them correctly makes your API more predictable, debuggable, and self-documenti...
Software Engineer
Software Engineer
published 2025-09-30 16:25:30 +0700 · 2 mins read
blog cover

Quick Test Your IP Knowledge

You don’t need to be a software engineer to have heard of IP addresses. They pop up everywhere in our digital lives, from setting up Wi-Fi to troubleshooting connection issues. In this post, I’ve collected some common questions so you can quickly che...
Software Engineer
Software Engineer
Interview
Interview
published 2025-09-09 14:35:43 +0700 · 5 mins read
blog cover

Jekyll Asset Caching Strategy for AWS S3 + CloudFront Deployment

Deploying a static Jekyll site to AWS can be fast, but without the right caching strategy, users might see stale content or you might waste bandwidth re-downloading unchanged assets.This blog explains a dual-cache policy that combines long-term cachi...
Software Engineer
Software Engineer
Frontend
Frontend
published 2025-08-11 10:52:50 +0700 · 3 mins read
blog cover

Safe Concurrent Updates in Rails with Locks and Atomic SQL

Some applications require handling concurrent updates, like buying concert tickets or transferring money. In these cases, data consistency and atomicity are critical. Any mistake can lead to overbooking, double-spending, or even lost money. This post...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
published 2025-08-08 10:21:06 +0700 · 3 mins read
blog cover

JavaScript Immediately Invoked Function Expression

Today, we're diving into a common JavaScript pattern you've likely encountered: the Immediately Invoked Function Expression (IIFE). This pattern is used to manage scope and prevent global pollution.1. The ProblemConsider this simple script:// languag...
Interview
Interview
Frontend
Frontend
published 2025-07-17 14:50:21 +0700 · 3 mins read
blog cover

Modern JavaScript OOP Features: True Private Fields, Static Methods, and More

When I first started learning JavaScript, its object-oriented features felt like an afterthought. The language had objects and prototypal inheritance, but it was missing key features like true private fields and methods. That’s why many developers tu...
Software Engineer
Software Engineer
Frontend
Frontend
published 2025-06-28 21:18:52 +0700 · 4 mins read
blog cover

I just made a serious mistake with Rails destroy_all

Rails Active Record is convenient and human-readable for interacting with SQL models. But not understanding the generated SQL behind these elegant methods can cause serious data loss that might go unnoticed until it's too late.1. Setting the SceneThi...
Software Engineer
Software Engineer
Ruby on Rails
Ruby on Rails
published 2025-06-23 18:47:22 +0700 · 3 mins read
blog cover

Standard convolution and lite versions

In school, you may have studied standard convolution in your lectures. Standard convolution is effective for image processing, but it requires a significant number of parameters and heavy computational resources. Recently, several research advances h...
AI
AI
published 2025-06-04 17:04:54 +0700 · 2 mins read
Loading more ...