3 ms·
Yes, yes, yes, yes. I am SO TIRED of seeing pre-optimizations from people who should know better. These optimizations are a neat FYI. But they do not belong an
by gonyea 10y ago
Yes, yes, yes, yes. I am SO TIRED of seeing pre-optimizations from people who should know better.
These optimizations are a neat FYI. But they do not belong anywhere near the business logic of a production app. If you have a massive app (doubtful) with bottlenecks that warrant these optimizations (doubtful), extract them into a library that is isolated, documented, and tested. Business logic should describe the needs of the business in the clearest and simplest terms.
- zokier 10y agoDid you read the article? It describes optimizations applied inside a relatively low-level building block library, not anywhere near business logic. Heck, the author goes as far to say: > I apply it in libraries and platform code because applications that I don't control or will not know about will depend on them and therefore I cannot make the assumption whether performance will matter or not for them. Everyday applications I work on typically don't have tight performance requirements so optimization is less prioritized
- gonyea 10y agoYes, I did. There's a lot of people who will ignore his caveat and try to use these optimizations where they don't belong. I see it a lot and it's painful. Hence the "throw it out the window" advocacy.