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

preview_player
Показать описание

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
Рекомендации по теме
Комментарии
Автор

I really do enjoy this writing clean code series.. They help a lot to correct my bad habits from time to time.

nikhilsourav
Автор

Super needed video. Not enough emphasis on this topic. I have really started paying attention to my code quality. Not always easy when your under pressure, but I always do my best to keep my code as clean as possible. Appreciate you and your content. See you soon!

CodingNuggets
Автор

Simplicity is the ultimate sophistication. Thanks man.

shamsul
Автор

Props for mentioning James Q Quicks Quokka video. Also a good video. 🙌

kettenbach
Автор

So much awesome in one video!!! Thanks for sharing.

karlstenator
Автор

Super thankyou, this is real PRO TIPS

hdm_vision
Автор

Thanks a lot for all these tips, the majority of them are very useful to me :)

elgrancriticon
Автор

So useful tips
Thanks from Saudi Arabia

HA-fqxc
Автор

SOLID tips, Very much appreciated. Thanks!

splitpierre
Автор

Just found your channel, this video is great. Thanks for sharing. These are some awesome examples.

christopherjschultz
Автор

Straight to the point, valuable tips. Love it

Frazful
Автор

This code theme for vscode is awesome! bomb tips!

Pokemonman
Автор

Small things that mean a lot ! Great work buddy 👏

viswanathank
Автор

Thank you so much i learned a lot of new things and applied it to my work!!!

saurabhdaswant
Автор

Now I can flex how cool Javascript is! Kidding tho this video has surely very interesting stuff that really does help while writing large application.

rupamkairi
Автор

Great video, i have learned so much from this video

minercreepmc
Автор

Awesome tricks thank you so much for this knowledge sharing to us keep posting more videos like this 🙂👌🏼👌🏼👌🏼👌🏼

marimuthur
Автор

Really quick, thanks for your videos. They help me out

oorhood
Автор

Nice to see that many of the practices at my work are reflected here. Of course typescript helps a lot too.

Pluvofor
Автор

How good you are 😁👍🏽👍🏽, i also interested in Vscode how it looks.

waleedalkathiri
visit shbcf.ru