IssueRaiser

> But I believe that many people resort to using hash tables at the end of the day just because they are the easiest to use.

> But I believe that many people resort to using hash tables at the end of the day just because they are the easiest to use. For me, it's a matter of avoiding premature optimization. When I end up dealing with needing to optimize my code, very rarely is the data structure the primary pain point. Just because something is "easy to use" doesn't necessarily mean that the faster alternative is worth the opportunity costs. I prefer the Donald Knuth quote: "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%."

Posted by mathgeek on Apr 13, 2015, 5:22 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.7,000 issues0 comments

hackernews (Other)

> But I believe that many people resort to using hash tables at the end of the day just because they are the easiest to use.

mathgeekApr 13, 2015, 5:22 PM

> But I believe that many people resort to using hash tables at the end of the day just because they are the easiest to use. For me, it's a matter of avoiding premature optimization. When I end up dealing with needing to optimize my code, very rarely is the data structure the primary pain point. Just because something is "easy to use" doesn't necessarily mean that the faster alternative is worth the opportunity costs. I prefer the Donald Knuth quote: "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%."

Comments (0)

No comments yet. Start the discussion.

Comment on this issue