VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Clean Code: Functions (Part 2) - Beau teaches JavaScript

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

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn the best practices of how to create Clean Code in JS. This video tutorial is part 2 of how easy is to write Javascript functions that are readable, reusable, and refactorable. Special thanks to Ryan McDermott for a lot of the code in this video. - http://codepen.io/beaucarnes/pen/pRWXVw?editors=0012 Ryan McDermott-s original article: - https://github.com/ryanmcdermott/clean-code-javascript#functions Beau Carnes on
Date: 2022-03-14

Comments and reviews: 2


Just to be clear, when replacing conditional with polymorphism, a conditional might still be needed, just not inside the class.
Somewhere, someone or something needs to decide which subclass should be instantiated

reply

I think for 3:50 there is a shorter sollution: const totalOutput = programmerOutput.reduce((acc, elem) => acc + elem.linesOfCode, 0)
reply
Add a review, comment






Other channel videos