Clean Code: Functions (Part 1) - Beau teaches JavaScript

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

Ryan's 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.

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

I love the sound of your keyboard dude, takes me back many years. Clunky and loud so everyone knows that i'm workin!!!

Elregar
Автор

U said of removing duplicate in code...then told not using flags and then made 2 functions with almost duplicate code? Which practice should I follow!

sagnikb
Автор

@8:31 vice-versa for function names is more logical (createTempFile in temp folder.. ) 🙂

alex
Автор

So you have a variable portfolio that can contain a GitHub link. Very clean indeed...

MrOmerDalor
Автор

Thank you, great job. I will be aware of these things for any future code I write :)

saadiyafourie
Автор

are your create files and your create temp files reversed? i.e. swap the names around.

alimfuzzy
Автор

Beau, what's your take on ternary operators with respect to "clean" code? I've seen the complaint that they aren't as readable as ifs, but I happen to like them (as long as there's no nesting or really weird stuff going on). For example at about 7:00 lines 104 to 108 could be,

const portfolio = employee.type === 'manager' ? employee.getMBAProjects() : employee.getGithubLink();

and you would retain the use of const. But, would this be considered "clean"? As a newer programmer, these nuances are tough to figure out, so thanks for these videos.

jasonmcgloin
Автор

Great content, but I didn't understand the last example

Mohamed_Karam
Автор

At 1:32, emailClient is still filtering the records, maybe one could directly get an array of active clients and call email functions on it

anuragdubey
Автор

why is the variable name for the const not in all caps?

Dystn
Автор

Ugh, the “one level of abstraction” was very badly explained. Confusing :/

sixtyone
Автор

createFile() and createTmpFile() ... so what u say about DRY ? )

TheMKilo
Автор

Hi! I think sometimes you speak very fast :P
But thanks for the videos :)

FredChevitarese
Автор

Awesome video, but mad at the ear-rape at the end...

megadarkassassinn
visit shbcf.ru