Recently I read a book(CleanCode)
in this book,
FUNCTION SHOULD DO ONE THING. THEY
SHOULD DO IT WELL. THEY SHOULD DO IT
ONLY.and function should be small.
But I think the function in javascript.
If I split big function to small things, the code is getting longer and It takes more time to render.
Is it better to make function small even in javascript?
What is your opinion
Micro-optimizations are not worthwhile. Maintainability is far more important. For actually serving the code to the browser, you can use a JavaScript minifier.