ardalis / DevIQ-gatsby

MIT License
44 stars 29 forks source link

Premature Optimization #454

Open ardalis opened 3 months ago

ardalis commented 3 months ago

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.