Re:Three JavaScript performance fundamentals that make Blueb...
by zokier on Monday September 05, 2016 @06:19PM
(#12432534)
Did 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
Re:Three JavaScript performance fundamentals that make Blueb...
by gonyea on Tuesday September 06, 2016 @01:04AM
(#12433770)
Yes, 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.
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.