1. SOLID là gì? S.O.L.I.D là 5 chữ cái viết tắt của 5 nguyên tắc lập trình hướng đối tượng (object-oriented computer programming)+ Single responsibility principle+ Open–closed principle+ Liskov substitution principle+ Interface segregation principle+ Dependency inversion principle
Category Archives: Solid
S — Single Responsibility Principle (S.R.P)
A class should have one, and only one, reason to change. 1. Lý thuyết Mỗi Class nên chỉ có duy nhất một lý do để thay đổi.Responsibility trong ngữ cảnh này có thể hiểu là lý do để thay đổi. Bất cứ khi nào bạn nghĩ ra vài lý do để thay đổi code thì […]