Hacker News new | ask | show | jobs
by simonblack 1246 days ago
“Premature optimization is the root of all evil”

https://effectiviology.com/premature-optimization/

IOW, don't waste time in refactoring if it is not imperative for some particular reason.

2 comments

This is greatly mistaken. Continuous refactoring is imperative. Not doing it is like owning a house and never doing basic maintenance. Refactoring is orthogonal to optimization.
As a general rule, and operus memorandi, I agree 100%.

But like any rule, if we're talking specifics, there are exceptions. Scripts you use occasionally do not need developer time committed to iterating on. They can technically be improved, and refactoring them would likely lead to benefits, but they don't require it. There is nuance.

100% agreed.