Is premature optimization the root of all evil?(blog.startifact.com)
blog.startifact.com
Is premature optimization the root of all evil?
https://blog.startifact.com/posts/is-premature-optimization-the-root-of-all-evil/
2 comments
I idly worry that this, blanket rejection of goto, etc. are giving ammunition to lazy thinkers when the point of such "rules" is to guide thinking of new programmers until they can properly reason about exceptions and nuances for the rules; like trainer wheels for the mind. It's not a mathematical, empirical definition, for sure, but a good professional will have a feeling for the right thing to do to solve a problem cleanly.
I have found that some people never re-examine these rules as life goes on and just become like a walking linter, without any capacity to think more deeply about things. They tend to produce superfluously acceptable code with deeper flaws because they don't think about things holistically.
I have had a coworker cite avoidance of premature optimization frequently as an excuse for not wanting to think about architecture, context or the future, even when things are well defined. He'll whip this out to avoid work, but then spends many hours refactoring his codebase multiple times.
I have found that some people never re-examine these rules as life goes on and just become like a walking linter, without any capacity to think more deeply about things. They tend to produce superfluously acceptable code with deeper flaws because they don't think about things holistically.
I have had a coworker cite avoidance of premature optimization frequently as an excuse for not wanting to think about architecture, context or the future, even when things are well defined. He'll whip this out to avoid work, but then spends many hours refactoring his codebase multiple times.
> He'll whip this out to avoid work, but then spends many hours refactoring his codebase multiple times.
This is an intentional strategy used by some people, so it's not necessasarily a mistake.
This is an intentional strategy used by some people, so it's not necessasarily a mistake.
[0]: https://mht.wtf/post/structured-programming-quotes/
[1]: https://news.ycombinator.com/item?id=19254310