Rule 3: When your software becomes unusable due to performance issues, just start from scratch again.
-
-
-
Or hire consultants at $500/hour! I think the quote in question must be a conspiracy by optimization consultants to grow their business.
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
Make it work. Make it stable. Make it secure. Make it fast. Most software never get passed stable. So in reality, this is a rule for a hypothetical problem.
-
... AND we all know what happens when you "design for performance and security". You never even get to "make it work".
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
Ok. Should we also stop teaching most of DS/Algo? After all, bubble sort and linear search give you correct results! Q: How to find the largest number in an array? A: Sort the array using the default sort function. Then reverse it. Now the first element is the largest!

-
No, but a lot of people optimize the wrong thing. For instance they tweak O(n^2) to still be O(n^2) but a tiny bit faster, rather than seeing how to get an O(n ln n) version. In general optimization should be done by someone with the knack for it.
-
The quote seems to suggest that even experts should keep postponing it indefinitely. Any non-trivial thing can be screwed up when we try to do without having expertise. Optimizn, refactoring, documentation, security, scalability - you name it.
-
"Premature optimization is the root of all evil" means don't do it without profiling first, but most people got it as "ignore it until is to late". A design mistake can be hard-to-impossible to optimize down the line. Moore law should not be a performance strategy.
-
So very much this. Your quote is from Knuth, and it is followed by "Yet we should not pass up our opportunities [when it does matter]."
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
Rule 3: Keep promising to do it "after the next sprint".
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Make It Work -> Make It Right (i.e. refactoring) -> Make It Fast (i.e. profiling and optimizing)
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
And this is why so much software runs like absolute arse. Here's my rule of optimization: "Think about it while writing the feature, and optimize it right after you made it work"
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
1. Define the performance your users require 2. Continuously test for it from day 1 3. never release code that violates the performance you require
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
This is why all modern software is so ridiculously slow, clunky and badly implemented. In a web browser.
-
It's the f'd up idea that the web browser is a fantastic client side platform on which to develop.
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
Rule 3: Profile first! Then profile, and profile. Do not forget also to profile first. Profile.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Agree with that for premature optimization. Last night, I cut the load time for a single http request from 21 to 3 seconds. I think that time was well spent. Took about 90 minutes.
-
I thought you were talking about milliseconds
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
That is some remarkably poor advice.
- কথা-বার্তা শেষ
নতুন কথা-বার্তা -
লোড হতে বেশ কিছুক্ষণ সময় নিচ্ছে।
টুইটার তার ক্ষমতার বাইরে চলে গেছে বা কোনো সাময়িক সমস্যার সম্মুখীন হয়েছে আবার চেষ্টা করুন বা আরও তথ্যের জন্য টুইটারের স্থিতি দেখুন।
