docs: add patterns vs conventions definition
This commit is contained in:
@@ -87,3 +87,9 @@ library implementation) at commit
|
||||
|
||||
This repository contains analysis and patterns derived from
|
||||
rust-lang/rust (MIT/Apache-2.0 dual licensed).
|
||||
|
||||
## Patterns vs Conventions
|
||||
|
||||
**Pattern** = prescriptive. "When you face X, do Y." Language-scoped. Follow these.
|
||||
|
||||
**Convention** = descriptive. "Project Z does it this way." Context-specific. Study for ideas — applying another project's conventions to yours without understanding their constraints causes harm.
|
||||
|
||||
Reference in New Issue
Block a user