principles:keep_it_simple_stupid
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:keep_it_simple_stupid [2021-02-01 21:11] – old revision restored (2020-12-10 03:53) 95.216.157.202 | principles:keep_it_simple_stupid [2021-09-02 10:43] – old revision restored (2021-05-19 10:25) 65.21.179.175 | ||
---|---|---|---|
Line 15: | Line 15: | ||
* [[contexts: | * [[contexts: | ||
* [[contexts: | * [[contexts: | ||
- | ===== Principle Statement =====l | + | ===== Principle Statement ===== |
A simple solution is better than a complex one, even if the solution looks stupid. | A simple solution is better than a complex one, even if the solution looks stupid. | ||
Line 37: | Line 37: | ||
"When you make your code more flexible or sophisticated than it needs to be, you over-engineer it. Some do this because they believe they know their system’s future requirements. They reason that it’s best to make a design more flexible or sophisticated today, so it can accommodate the needs of tomorrow. That sounds reasonable, if you happen to be a psychic." | "When you make your code more flexible or sophisticated than it needs to be, you over-engineer it. Some do this because they believe they know their system’s future requirements. They reason that it’s best to make a design more flexible or sophisticated today, so it can accommodate the needs of tomorrow. That sounds reasonable, if you happen to be a psychic." | ||
- | Another reason to create more complex code is to make optimizations. An optimized code is a more complex code. Pareto principle applies also in code: a program spend most of the time in a small portion of the code, so it will be wise to concentrate the effort to optimize only that part of the code. Another best practice is to follow the | + | Another reason to create more complex code is to make optimizations. An optimized code is a more complex code. Pareto principle applies also in code: a program spend most of the time in a small portion of the code, so it will be wise to concentrate the effort to optimize only that part of the code. Another best practice is the to follow the |
"Three rules of optimization": | "Three rules of optimization": | ||
principles/keep_it_simple_stupid.txt · Last modified: 2021-10-20 21:09 by christian