"Bất kỳ ai cũng có thể viết code máy hiểu. Lập trình viên giỏi viết code người hiểu." - Martin Fowler
1. Coding Standards cho .NET Projects
Naming Conventions
| Element | Convention | Ví dụ |
|---|---|---|
| Namespace | PascalCase, theo folder structure | MyApp.Application.Services |
| Class / Interface | PascalCase, Interface prefix I | OrderService, IOrderRepository |
| Method | PascalCase, verb-first | GetOrderById(), ValidatePayment() |
| Property | PascalCase | CustomerName, IsActive |