Clean Functions in JavaScript | Clean Code Tutorial

Опубликовано: 14 Апрель 2022
на канале: Scrimba
437
6

🎓 View our courses: https://scrimba.com/links/all-courses

In this video, we start looking at how to write clean functions.

As with all clean code, functions should be:
⭐️ Searchable
⭐️ Readable
⭐️ Understable

We should also be sure to stick to some other best practices, including:
⭐️ Writing small functions
⭐️ Eliminating boolean flags/dual purpose functions
⭐️ Ensuring functions read top to bottom
⭐️ Using correct function names
⭐️ Limiting parameters
⭐️ Ensuring our functions are DRY (Don't Repeat Yourself)
⭐️ Avoiding side effects

Learning clean code is one of the best career investments you can make. By spending one hour to learn the fundamentals, you get to reap the benefits across all your future code bases. It's 10x the payoff for the effort.

🔧 Play with this code on Scrimba:
https://scrimba.com/learn/cleancode

💻 Check out Scrimba’s interactive learning platform:
https://scrimba.com/

🌲 Linktree:
https://scrimba.com/links/linktree


На этой странице сайта вы можете посмотреть видео онлайн Clean Functions in JavaScript | Clean Code Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Scrimba 14 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 437 раз и оно понравилось 6 зрителям. Приятного просмотра!