The chain-of-responsibility pattern is a behavioral design pattern consisting of a source of command objects and a series of processing … More
Category: dev
Flyweight Pattern
In computer programming, the flyweight software design pattern refers to an object that minimizes memory usage by sharing some of … More
Proxy Pattern
The proxy pattern is a software design pattern. A proxy, in its most general form, is a class functioning as … More
Adapter pattern
The adapter pattern is a software design pattern that allows the interface of an existing class to be used as … More
Factory Method pattern
The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects … More
Decorator pattern
The decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting … More
Composite pattern
The composite pattern describes a group of objects that are treated the same way as a single instance of the … More
Abstract Factory
Abstract Factory provide an interface for creating families of related or dependent objects without specifying their concrete classes Abstract Factory … More
Builder Pattern
The builder pattern is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented … More
Prototype Pattern
Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. Mô … More
Đến tuổi lười giải thích và comment
Nếu muốn code không cần comment ít ra phải như ảnh trên:
SSH máy công ty không cần mở port
Với các bạn dùng Linux thì ssh vào được máy bàn ở công ty là chuyện nên cài đặt sẵn … More
Facade Pattern
Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the … More
Design patterns dễ như ăn kẹo
Design patterns là 1 trong những chủ đề quan trọng nhưng không được nhiều trường IT dạy 1 cách công … More
Xóa code python thừa
Bạn: Cũng là bạn: Lúc này bạn có thể tạo 1 hàm để làm decorator như hàm bên dưới. Dữ … More
Xây dựng một GitHub Actions để tự động tải và lưu file từ internet
Mới gặp trường hợp có nhu cầu dùng git để tải vài file về và lưu vào git. Trigger bằng … More
Cách tôi comment thời điểm hiện tại
Tôi là con nghiện comment trong code. Nó giúp code tôi dễ đọc dễ hiểu với…chính tôi trong tương lai. … More
Python ghi log tiếng Việt
Clean Git
Ngoài nghiện comment, tôi còn là con nghiện của clean git. Bên trái là dự án cá nhân, 1 mình … More
Những câu hỏi phỏng vấn tôi vẫn sẽ tiếp tục dùng
Sau bài những câu dễ tôi thường hỏi khi phỏng vấn mà tôi sẽ không bao giờ dùng nữa là … More