4 ms·
I think the "premature optimization is evil" heuristic exists is not to avoid doing efficient things but to avoid prioritizing optimization over design. Yes, yo
by ninjakeyboard 11y ago
I think the "premature optimization is evil" heuristic exists is not to avoid doing efficient things but to avoid prioritizing optimization over design. Yes, you want linear or logarithmic runtime complexity and NEVER quadratic, but you won't use mutable datastructures in scala until you know that there is a space complexity issue for instance. Then, and only then, do you optimize to reduce memory usage as it hurts your design quality.
I think the title is a bit misleading because it's a good heuristic and you agree with that too.