Forwarded from Andrey Nikishaev
There are plenty of recommendations around the internet that you need to use more sugar from JS, as it makes you better developer.
But the problem, that its not. On the screen you see 2 variants A and B. A variant is "better", based on internet "experts", but its not.
Lets see rewritten versions of both with most basics operations only (just for examples its not 100% same)
Problem that variant A looks more professional, but in reality produce more problems. Both variants not ideal and have problems, but the first one not only have more of them but also hide them from viewer.
So before use any sugar - I strongly recommend to read it internal code to see how it really behave and what problems have.
#js #hiload #bugs #issues #memoryusage #speed #architecture #systemprogramming
But the problem, that its not. On the screen you see 2 variants A and B. A variant is "better", based on internet "experts", but its not.
Lets see rewritten versions of both with most basics operations only (just for examples its not 100% same)
Problem that variant A looks more professional, but in reality produce more problems. Both variants not ideal and have problems, but the first one not only have more of them but also hide them from viewer.
So before use any sugar - I strongly recommend to read it internal code to see how it really behave and what problems have.
#js #hiload #bugs #issues #memoryusage #speed #architecture #systemprogramming
👍2