principles:uniformity_principle
This is an old revision of the document!
Table of Contents
Uniformity Principle (UP)
Variants and Alternative Names
Context
Principle Statement
Solve similar problems the same way.
Description
Rationale
Strategies
- Use the same naming scheme everywhere
- Use the same techniques and mechanisms everywhere
- In similar methods use the same order of parameters
Caveats
See section contrary principles.
Origin
Evidence
Relations to Other Principles
Generalizations
- Easy to Use and Hard to Misuse (EUHM): Uniform interfaces are easier to use than others.
Specializations
Contrary Principles
Note that UP can be contrary to virtually every other principle as it demands neglecting other principles in favor of uniformity.
- Keep It Simple Stupid (KISS): Sometimes UP demands more complex solutions because they are already applied elsewhere and for the sake of uniformity shall also be applied in simpler contexts where they would not be necessary.
- Model Principle (MP): UP may demand adhering to a certain naming scheme, which may not be best with respect to MP.
Complementary Principles
- Principle of Least Surprise (PLS): When applying UP, PLS should also be considered for naming modules.
Principle Collections
Example
Description Status
Further Reading
principles/uniformity_principle.1630579852.txt.gz · Last modified: 2021-09-02 12:50 by 65.21.179.175