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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2021
  • 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.
    What is "State": • What is "State" in Pro...
    Want to learn more about JavaScript or NodeJS? Explore our courses (and get some nice discounts)!
    JavaScript - The Complete Guide: acad.link/js
    NodeJS - The Complete Guide: acad.link/nodejs
    Or get ALL ours courses for one low price with our monthly or annual memberships: pro.academind.com
    Join our free Academind Community on Discord: / discord
    Check out all our other courses: academind.com/learn/our-courses
    ----------
    • Go to www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content & discounts
    • Follow @maxedapps and @academind_real on Twitter
    • Follow @academind_real on Instagram: / academind_real
    • Join our Facebook community on / academindchannel
    See you in the videos!
    ----------
    Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!

ความคิดเห็น • 47

  • @ChessMemer69
    @ChessMemer69 3 ปีที่แล้ว +4

    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!

  • @harolddelrosario8954
    @harolddelrosario8954 2 ปีที่แล้ว +1

  • @user-gu5ts5nx8r
    @user-gu5ts5nx8r 3 ปีที่แล้ว +1

    Very helpful, thanks for sharing.

  • @_rachid
    @_rachid 3 ปีที่แล้ว

    Thanks for these clarifications.

  • @martinhp7200
    @martinhp7200 2 ปีที่แล้ว +1

    Gracias por la explicacion me ha servido mucho

  • @CodingNuggets
    @CodingNuggets 3 ปีที่แล้ว +8

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

    • @gerardoemiliano2245
      @gerardoemiliano2245 2 ปีที่แล้ว

      I dont mean to be so off topic but does someone know a tool to log back into an instagram account..?
      I was stupid lost my login password. I appreciate any help you can give me!

    • @brodydariel5388
      @brodydariel5388 2 ปีที่แล้ว

      @Gerardo Emiliano Instablaster ;)

    • @gerardoemiliano2245
      @gerardoemiliano2245 2 ปีที่แล้ว

      @Brody Dariel i really appreciate your reply. I found the site thru google and im in the hacking process atm.
      I see it takes a while so I will get back to you later when my account password hopefully is recovered.

    • @gerardoemiliano2245
      @gerardoemiliano2245 2 ปีที่แล้ว

      @Brody Dariel It did the trick and I finally got access to my account again. Im so happy!
      Thank you so much, you saved my ass !

    • @brodydariel5388
      @brodydariel5388 2 ปีที่แล้ว

      @Gerardo Emiliano you are welcome xD

  • @nehalneki1511
    @nehalneki1511 3 ปีที่แล้ว

    awesome to meet u again max...

  • @samyaahmed6972
    @samyaahmed6972 3 ปีที่แล้ว

    You are a great teacher.

  • @easterntornado
    @easterntornado 3 ปีที่แล้ว +3

    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?

  • @amitjoshi956
    @amitjoshi956 3 ปีที่แล้ว +1

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

  • @robertr9432
    @robertr9432 3 ปีที่แล้ว +4

    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

  • @naraferalina2308
    @naraferalina2308 2 ปีที่แล้ว

    Thank you!

  • @Daniel-nb3kk
    @Daniel-nb3kk 3 ปีที่แล้ว +1

    Very likely the best explanation on YoutTube!

    • @academind
      @academind  3 ปีที่แล้ว

      Wow, thanks!

  • @maaark627
    @maaark627 3 ปีที่แล้ว

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

  • @watherby29
    @watherby29 3 ปีที่แล้ว

    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 :)

  • @kansjetilbakestaende
    @kansjetilbakestaende 3 ปีที่แล้ว +6

    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.

  • @umarkhankhodjaev
    @umarkhankhodjaev ปีที่แล้ว

    thanks jonny

  • @saivikas9576
    @saivikas9576 3 ปีที่แล้ว

    Super teaching

  • @adiishukla196
    @adiishukla196 3 ปีที่แล้ว

    Thank u man ur udemy course on React is extraordinary explaination

  • @TheCoonHouse
    @TheCoonHouse 3 ปีที่แล้ว +2

    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.

  • @DrGecko1
    @DrGecko1 ปีที่แล้ว

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

  • @uimarshall6012
    @uimarshall6012 3 ปีที่แล้ว

    Absolutely!!!

  • @rupabalaraman
    @rupabalaraman 2 ปีที่แล้ว

    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.

  • @ashwinchaudhary5730
    @ashwinchaudhary5730 3 ปีที่แล้ว

    Sir In Angular Course which extension you used?

  • @moranmono
    @moranmono 3 ปีที่แล้ว +1

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

  • @thalibmuhammad9519
    @thalibmuhammad9519 3 ปีที่แล้ว

    0:52 how Bout dependency injection?

  • @someone11233
    @someone11233 3 ปีที่แล้ว

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

    • @voldemort576
      @voldemort576 3 ปีที่แล้ว

      tailwind css

    • @someone11233
      @someone11233 3 ปีที่แล้ว

      @@voldemort576 100% disagree

    • @voldemort576
      @voldemort576 3 ปีที่แล้ว

      @@someone11233 why

    • @someone11233
      @someone11233 3 ปีที่แล้ว

      @@voldemort576 Because it has nothing which Material UI offers

  • @BiologyIsHot
    @BiologyIsHot 2 ปีที่แล้ว

    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

  • @Thilina4321
    @Thilina4321 3 ปีที่แล้ว

  • @abhilashvm9291
    @abhilashvm9291 3 ปีที่แล้ว

    please up your audio level

  • @user-bz5gi2eg4d
    @user-bz5gi2eg4d 3 ปีที่แล้ว

    Hey Max!
    Do you have any plans on making IOS development course?
    I think it would be super popular with your students)
    Like this comment,and i hope Max will answer)

  • @calvincrane
    @calvincrane 3 ปีที่แล้ว

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

  • @asdqwe4427
    @asdqwe4427 3 ปีที่แล้ว

    Side effects are what we sell

  • @madhuabbu2729
    @madhuabbu2729 3 ปีที่แล้ว

    Pls translate nrml tamil

  • @johnaweiss
    @johnaweiss ปีที่แล้ว

    You didn't explain why unexpected things are never great. I guess you're speaking the ability for a future developer to understand your code without reading it too closely?

  • @ES-jq6zo
    @ES-jq6zo 3 ปีที่แล้ว +2

    First