r/programming • • Apr 09 '14

Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"

[deleted] — view deleted post

2.0k Upvotes

661 comments sorted by

View all comments

Show parent comment

13

u/[deleted] Apr 09 '14

Premature optimization is one of the worst practices you can ever do.

Can anyone explain to me why am I being downvoted?

Broad stroke generalized statements that apply one way of thinking to ALL situations is inherently incorrect.

-7

u/otakuman Apr 09 '14

"Premature optimization is the root of all evil".
-Donald Knuth.

7

u/desimusxvii Apr 09 '14

"premature" is the operative word here.

They optimized because something was slow in a certain situation. "Premature" would be optimizing before you knew there was a problem. Optimizing based on the hunch something would be slow.

0

u/[deleted] Apr 09 '14

[deleted] — view deleted comment

3

u/aaronsherman Apr 09 '14

Yes, but there's a diminishing return on noting exceptions to exceptions.

Eventually, you are talking about extremely rare, and usually iconic cases which few people would be confused by.