Clean Code: Variables - Beau teaches JavaScript

preview_player
Показать описание
Learn the best practices of how to write clean code in JS. This video tutorial shows you how easy is to create Javascript variables that are readable, reusable, and refactorable. The video is based on an article from Ryan McDermott.

Original article:

Code:

⭐JavaScript Playlists⭐

-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

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

Good stuff Beau!
@ Editor vs ppt 😴
Right & wrong way😇😈
Live typing corrections 😷
Fast pace narration 💃
3<5 min clips vs 15-120min😲
Great format !

wongright
Автор

First, a tip of the hat - Great series! Keep it up! Question 1: Variables - Why/when are you defining FIRST_US_PRESIDENT and MINUTES_IN_A_YEAR in all caps but yearMonthDay and cityStateRegex in camelcase? Question 2: Semicolons - When is it ok to leave the semicolon out at the end of the line ( like you did on line 13, line 22 ) after the for loop ( line 16 ) after a function ( line 34, line 39), thanks for clarifying!

LeRdub
Автор

In the last example I would use default value for name in function parameters instead of using conditional

dapolcio
Автор

Nice explanation, please make angular tutorials also

srikanthjanapati
Автор

So if I follow the principles, the written variable MINUTES_IN_A_YEAR (line 13) must be a const ?

amlslmn
Автор

match(regex) is a string method, yet you used for the same RegExp object.

Siderite
Автор

Shouldn't you just use let and const for everything and avoid var all together?;

Permafry
Автор

yearMonthDay is a meaningful variable name? What does the date represent?

bujin
Автор

Another great vid. Consider me hooked. or i guess

const isViewerHooked = true;

bobbostruztkin
Автор

Off topic, I don't understand the use match method with the string itself, also why the value of the string is so weird, can somebody explain?

cnstntn
Автор

is that actually the purpose of const?

joebazooks
Автор

function createMicrobrewery(name = 'Hipster Brew go''){
}
more less, readable code

NeymarJr-ujwf
Автор

>starts watching video
>3:06
>areYouAWizard.jpeg

xElMery