filmov
tv
JavaScript Pure Functions and Side Effects in 8 Minutes
![preview_player](https://i.ytimg.com/vi/LR2z-a7VwmQ/maxresdefault.jpg)
Показать описание
In this video, we'll be going over pure functions and side effects. I'll explain what they are, why it's important to understand them, show you some examples, and even quiz you on your new-found knowledge.
Though this isn't often seen as a "beginner" topic, I think it's really important to expose concepts like pure functions and side effects as early as possible so new developers can be enabled to not only developer interesting applications but do it in such a way that is clean and scalable.
Functions in JavaScript can serve a large number of different purposes. Pure functions aim to simplify and clarify the logic of your code. Side effects are byproducts of executing non-pure functions throughout your application
Timestamps:
0:00 Intro
0:37 What is a Pure Function?
0:57 Same Input, Same Output
2:31 What is a Side Effect?
2:56 Side Effect - Directly Mutate Outer State
3:41 Side Effect - Mutate Method Arguments
5:16 How to Avoid Producing Side Effects
5:58 Quiz Time
== Let's Connect ==
== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
#javascript #webdevelopment #softwareengineer
Though this isn't often seen as a "beginner" topic, I think it's really important to expose concepts like pure functions and side effects as early as possible so new developers can be enabled to not only developer interesting applications but do it in such a way that is clean and scalable.
Functions in JavaScript can serve a large number of different purposes. Pure functions aim to simplify and clarify the logic of your code. Side effects are byproducts of executing non-pure functions throughout your application
Timestamps:
0:00 Intro
0:37 What is a Pure Function?
0:57 Same Input, Same Output
2:31 What is a Side Effect?
2:56 Side Effect - Directly Mutate Outer State
3:41 Side Effect - Mutate Method Arguments
5:16 How to Avoid Producing Side Effects
5:58 Quiz Time
== Let's Connect ==
== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.
#javascript #webdevelopment #softwareengineer
Комментарии