một số hosting nước ngoài đã và đang dùng

ngoài racknerd và SSDNodes mình chưa xài lần nào và hiện đang xài greencloud, hosthatch, netcup, hostdzire, vừa mới dùng hetznet, thì mình thấy: 1) xịn nhất là hetznet, chắc chắn rồi, vì datacenter của nó public, xịn xò rõ ràng, giá rổ các thứ, hourly nữa, nhiều loại dịch … Read more

Golang: Interface ở consumer hay producer?

consumer nhé. còn đây là “kinh thư”. I was primarily an (Enterprise) Java developer before coming to Go. A couple of observations: One thing that I would recommend continuing from the Java world in Go: Java has the proverb that constructors should do little work. Go doesn’t have constructors per … Read more

DDD in Golang

Cấu trúc chung của một dự án Go thiết kế theo kiểu DDD (Domain – Driven Development). project-root/├── cmd/ # Application entry points (e.g., main.go for server, CLI)│ └── server/│ └── main.go├── internal/ # Core DDD layers, restricted to project│ ├── domain/ # Core business logic, pure and dependency-free│ │ … Read more

Từ Google Sheet tới Postgresql

Đầu tiên dữ liệu sẽ được biên tập trên Google Sheet, với Query hỗ trợ tách các file. Để import, tải file Sheet về csv. Import bằng Datagrid, dễ xài. Chú ý dữ liệu cột phải giống nhau.