filmov
tv
Do THIS to Write Clean Code! | JavaScript Pro Tips (2021)

Показать описание
Do you want to write code like a pro? In this video, I'll give you some examples of code that works, but could be written better. Make sure you watch through all of the examples so that you can learn how to start writing clean, professional code.
Inspiration for this video came from this repo from Ryan McDermott:
_____________________________________
_____________________________________
🛠️ Tools I use:
_____________________________________
⏱️ Timestamps ⏱️
00:00 - Intro
00:35 - Declaring Variables
00:59 - Assigning Values
01:23 - Naming Variables
03:18 - Don't Rely on Developer Memory
03:55 - Unnecessary Context
04:34 - Destructuring
05:31 - Objects & Guard Clauses
07:39 - Default Arguments
08:54 - Conditional Shorthand
09:34 - Template Literals
11:19 - Write Linear Code
13:02 - Single Responsibility Principle
14:38 - Don't Use Flags
16:34 - Avoid Side Effects
18:41 - Spread Operator
19:46 - Optional Chaining
20:37 - Ternary Operator
22:02 - Default Values
23:04 - Swap Two Variables
23:59 - Arrow Functions
24:57 - String to Number
_____________________________________
💖 Show support!
_____________________________________
👀 Watch Next:
_____________________________________
🌐 Connect With Me:
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#codeSTACKr #JavaScript #learntocode
Комментарии