10 Common JavaScript Clean Code Mistakes

Опубликовано: 01 Январь 1970
на канале: TomDoesTech
3,201
135

We all want to write better code so we can advance in our careers and show our colleagues how good we are. But that's tough when your code smells.

In this video, I'm going to show you 10 common JavaScript code smells and how you can avoid these making these mistakes.

1. Stuffing lots of logic inside a single function
2. Mutating objects & arrays instead of using the spread operator
3. Using await where a promise isn't returned
4. Over-complicated parameter list
5. Un-used or commented code
6. Pointless comments
7. Pointless conditions
8. Apply DRY within a service
9. Bad tests
10. Not enforcing these rules

javascript-testing-best-practices: https://github.com/goldbergyoni/javas...

🌎 Follow me here:
Discord:   / discord  
Twitter:   / tomdoes_tech  
Facebook:   / tomdoestech​  
Instagram:   / tomdoestech​  
TikTok:   / tomdoes_tech  
☕ Buy me a coffee: https://www.buymeacoffee.com/tomn


На этой странице сайта вы можете посмотреть видео онлайн 10 Common JavaScript Clean Code Mistakes длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь TomDoesTech 01 Январь 1970, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,201 раз и оно понравилось 135 зрителям. Приятного просмотра!