Title
#thinking-together
Shubhadeep Roychowdhury

Shubhadeep Roychowdhury

08/12/2020, 8:39 PM
Kartik Agaram

Kartik Agaram

08/12/2020, 9:33 PM
minor pedantic note on 'premature optimization':
This was originally attributed to Tony Hoare, but tracking down the origin of this quote I found that it was actually Knuth who said it first. Although Knuth did call it "Hoare's dictum" 15 years later, Hoare himself disclaimed it. See http://shreevatsa.wordpress.com/2008/05/16/premature-optimization-is-the-root-of-all-evil
https://wiki.c2.com/?PrematureOptimization
c

Chris Maughan

08/13/2020, 6:30 AM
This is basically my approach to coding, good stuff. The first question I ask anyone who tries to check in an optimization is "What was the measured time before and after?" If they can't answer that question, they are doing the wrong kind of programming.....
Shubhadeep Roychowdhury

Shubhadeep Roychowdhury

08/13/2020, 7:50 AM
I did not know, neither formalised the approach like Mr. Pike did. However, I do agree with it and I follow it most of the time. @Kartik Agaram Also, I had a faint memory about the "Premature Optimisation" part attributed to Knuth, thanks for confirming. This is a very important lesson and many people learn it the hard way.