Javascript Best Practices - Improve Your Code

preview_player
Показать описание
In this video we we look at some of the best Javascript coding standards and Javascript coding practices for JavaScript. You will learn most important rules that can help you to write clean code. If you follow the rules stated in video you code will because cleaner and easier to support.

Coding conventions helps to import code quality, readability and simplify maintenance. Following coding conventions makes your code more predictable, readable and consistent.

Writing clean code can also benefit you in code reviews while working in teams.

🚨IMPORTANT:

🕛 TIMESTAMPS:
0:00 Intro
0:19 Camelcase
1:14 Names of variables
2:59 Functions naming
6:29 Globals in Javascript
7:20 Magic numbers in Javascript
9:03 Comments in Javascript
11:15 Deep nesting
13:17 Long functions
15:21 Code repetition in Javascript
18:13 Style guide in Javascript
18:56 Don't trust anybody

📚 References:
Рекомендации по теме
Комментарии
Автор

Your videos are great and easy to follow, keep up the amazing work!

luisalbertomtz
Автор

Your content and the way of narration so nice

bharathip
Автор

I am not so good at naming but I cannot completely agree with generic variables like 'data'. It can be very useful when we write libs or some functions with generics. Anyway it was very helpful video, thank you.

olegts
Автор

How about checkArticle()? Or checkIfArticleIsSelected()?

realchicagophill