DEV Community

Discussion on: All Javascript apps need event throttling!!!

Collapse
 
nombrekeff profile image
Keff

Cool nice post.

I'd like to add a little disclaimer for young and junior devs, explaining that premature optimization can be evil in some cases... I think it's good to explain to junior devs why and when they should optimize, as premature and unnecessary optimization can lead to issues.

"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered."
Donald Knuth on "StructuredProgrammingWithGoToStat...

Also nowadays, machines are really powerful and interpreters and compilers are really smart and know how to optimize accordingly. This being said, there are always ways and places to optimize your code.

Check this thread out, if you are interested in learning more about premature optimization.

Collapse
 
jkjaikrishna profile image
jayakrishnan TN

thanks for the valuable comment @Manolo Edge..

Collapse
 
nombrekeff profile image
Keff

No problem, thanks to you for the post :)