principles:uniformity_principle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
principles:uniformity_principle [2021-05-19 09:49] – old revision restored (2021-05-11 17:19) 2a04:ac00:4:d29:5054:ff:fe00:d387 | principles:uniformity_principle [2021-09-02 12:50] – old revision restored (2021-05-19 09:48) 65.21.179.175 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Uniformity Principle (UP) ====== | ||
===== Variants and Alternative Names ===== | ===== Variants and Alternative Names ===== | ||
Line 10: | Line 11: | ||
===== Principle Statement ===== | ===== Principle Statement ===== | ||
+ | Solve similar problems the same way. | ||
===== Description ===== | ===== Description ===== | ||
Line 18: | Line 20: | ||
===== Strategies ===== | ===== 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]]. | ||
Line 35: | Line 44: | ||
==== Generalizations ==== | ==== Generalizations ==== | ||
+ | |||
+ | * [[Easy to Use and Hard to Misuse]] (EUHM): Uniform interfaces are easier to use than others. | ||
==== Specializations ==== | ==== Specializations ==== | ||
Line 40: | Line 51: | ||
==== Contrary Principles ==== | ==== Contrary Principles ==== | ||
- | | + | Note that UP can be contrary to virtually every other principle as it demands neglecting other principles in favor of uniformity. |
+ | |||
+ | | ||
+ | * [[Model Principle]] (MP): UP may demand adhering to a certain naming scheme, which may not be best with respect to MP. | ||
==== Complementary Principles ==== | ==== Complementary Principles ==== | ||
- | * [[principles: | + | * [[Principle of Least Surprise]] |
- | * [[principles: | + | |
- | * [[principles: | + | |
==== Principle Collections ==== | ==== Principle Collections ==== |
principles/uniformity_principle.txt · Last modified: 2021-10-18 22:00 by christian