DEV Community

Cover image for 5 best practices for clean coding in JavaScript

5 best practices for clean coding in JavaScript

Deepak Sisodiya on September 10, 2020

“Even bad code can function. But if the code isn’t clean, it can bring a development organisation to its knees.” — Robert C. Martin (Uncle Bob) ...
Collapse
 
tawaliou profile image
Tawaliou

You're just very good. Your post must be display in the all software room😎😎.

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Thank you so much. Thank you for the kind words. You are always welcome.

Collapse
 
tawaliou profile image
Tawaliou

When I was read your post I😂😂😂 remember my last javascript code and think that I respect some points that you've considered but I don't follow the rule about avoid complex using of many functions, so I will change habits

Collapse
 
sounix profile image
Aldrin Gonzalez Cancino

thanks

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Welcome...

Collapse
 
nikhilroy2 profile image
Nikhil Chandra Roy

It's really awesome guidelines keep up man.

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Thank you man :)

Collapse
 
sanderdebr profile image
sanderdebr

Great overview, thanks!

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Thanks for reading.
You are welcome.

Collapse
 
steevn profile image
steevn

Thanks for the nice overview. I love that type of post @dev.to - really helpful for me.

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Welcome
I am glad that you found this post helpful.

Collapse
 
thisisthien profile image
Thien Nguyen

Thanks.
It's better that you can use code syntax highlight for the post instead of the screenshot ;)

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Sure, I will use it from next time :)

Collapse
 
en profile image
EN

thanks

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

You are welcome

Collapse
 
ryansutrisno profile image
Ryan Sutrisno • Edited

thanks for share :)

Collapse
 
lortonx profile image
lortonx

your code is good, but less efficient than regular loops

Collapse
 
deepaksisodiya profile image
Deepak Sisodiya

Thanks for reading
You are welcome.

Collapse
 
anoopror profile image
Anoop Kumar Chaurasiya

You are the rock of the software field. This post is very useful for me.
thank :)