Javascript Clean Code Best Practices - 5 Tips for Coding Good

preview_player
Показать описание
Learn 5 tips to write clean code Javascript in 10 minutes. In this video I will share 5 important code tricks to make your code scalable, easy to read and support and help you coding good

TIMESTAMPS
0:00 Introduction
0:12 Flag as parameters
1:44 Encapsulate conditionals
3:05 Negative conditionals
4:15 Overriding prototypes
6:45 Chaining methods

FOLLOW ME

RECOMMENDED VIDEOS

MY COURSES
Рекомендации по теме
Комментарии
Автор

The tip about removing negation through conditionals and if's was PERFECT 👌🏼💯 I have been coding for 10 years, and I can tell you that one of the most annoying things is seeing something like: if(!notPropertyExists) stuff like this is so irritating just work on a True boolean value it's much cleaner 👏🏼

tyengineer
Автор

1:42 what about DRY? Usually what prompts me to use flags in function arguments is because the code is mostly the same, except one little detail, hence the boolean flag to toggle that detail on/off.

greob
Автор

Thanks. The topic is poorly covered in YouTube

krlprmy