DevIQ-gatsby icon indicating copy to clipboard operation
DevIQ-gatsby copied to clipboard

Premature Optimization

Open ardalis opened this issue 9 months ago • 0 comments

Not sure where this would go - antipatterns, probably, though it's a practice more so than a pattern. Antipractices?

See: https://wiki.c2.com/?PrematureOptimization

Premature optimization is the root of all evil -- DonaldKnuth In DonaldKnuth's paper "StructuredProgrammingWithGoToStatements", he wrote: "Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."

Ideally we should offer some examples of real world problems that arose due to PO.

ardalis avatar May 26 '24 16:05 ardalis