What are 'Pure Functions' and 'Side Effects'?

preview_player
Показать описание
You might've heard about "pure functions". Maybe also about "side effects" or "impure functions". There is no wrong or right here - you will need all these things in most applications, but it is crucial to understand what these terms actually means and what you should watch out for.

Want to learn more about JavaScript or NodeJS? Explore our courses (and get some nice discounts)!

----------

• Follow @maxedapps and @academind_real on Twitter

See you in the videos!

----------

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

Hey Max, absolutely a fan of your teaching. Your simplistic teaching style and balanced approach to theory/practical stuff keeps me engaged in all your videos. Do you have a Patreon account or something, I want to support you in this amazing endeavor of yours!

ChessMemer
Автор

What are side effects? Max comes right along and explains like the awesome teacher he is. Appreciate you my friend. See you soon!

CodingNuggets
Автор

In case someone wants to understand how one can implement functional programming better in TS. There is this book: "Hands-On Functional Programming with TypeScript" by Remo H. Jansen. Its a good start, but there is a few mistakes in it.

Thought I mention it since this is a topic from functional programming.

kansjetilbakestaende
Автор

great explanation, 1 thing missing is why should we even care if a function is pure or not, where is it useful?

DrGecko
Автор

<3 finally, I understand what are the "Side-effects" Thanks man! New Sub.

harolddelrosario
Автор

I Can still remember those times when you brought a console.log in production the Internet Explo(d)-(r)er died. And when you opened the console to check, everything was fine xD

robertr
Автор

As always, Maximilian's videos deliver the max. Thank you Maximilian !!
I have one doubt: Can we say that all web APIs which our JS code uses are side effects?

easterntornado
Автор

Gracias por la explicacion me ha servido mucho

martinhp
Автор

Hello Max,
In your example with console.log you state it's unpure because is changes the screen. Wouldn't that mean you cannot make a pure React component? These update the screen also.

TheCoonHouse
Автор

Very likely the best explanation on YoutTube!

Daniel-nbkk
Автор

Hello Max! Could you make a video on Controlled vs Uncontrolled components in React? Thanks for considering 😊

amitjoshi
Автор

I have a question: What is your process of leaning new technology? How do you go about it? Thanks. Your tutorials on Udemy are the best by the way :)

watherby
Автор

I like this short 5 or 10 minute videos. You can watch it at any time (Y)

maaark
Автор

Hey guys, I had a question for react application. While switching tabs on a react application, I see this error on network tab, which says failed to load response data, no data found for resource with given identifier. The requests that fail have the exact same URL and payload. How do I resolve this? Any ideas will me much appreciated.

rupabalaraman
Автор

Sir In Angular Course which extension you used?

ashwinchaudhary
Автор

Thank u man ur udemy course on React is extraordinary explaination

adiishukla
Автор

@Academin Plz make 1 video on which is better UI framework for React Js :
Material UI vs Reactstrap vs React-bootstrap vs Antd ?

someone
Автор

My problem with these explanations is that people always use innocuous side effects that don't really illustrate the dangers well at all. Or they use super implausible examples like making http requests in an add function

BiologyIsHot
Автор

Should let be used? const is for constants- nit picking. I am starting to like the channel.

calvincrane
Автор

I keep trying to press the symbols on the video frame, I thought that this is part of YouTube new look 😂😂

moranmono