JavaScript Pure Functions and Side Effects in 8 Minutes

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 15

  • @and1play5
    @and1play5 2 года назад

    just found ur channel, amazing, and shoutout for the OP love.ur a good teacher

  • @mrviometal4948
    @mrviometal4948 4 года назад +2

    That was sooooo high quality! Keep it up dude, happily subscribed :D

    • @IjemmaOnwuzulike
      @IjemmaOnwuzulike  4 года назад +1

      Thank you so much, more is definitely on the way. lmk if you wanna see a topic covered!

  • @tommy6322
    @tommy6322 3 года назад

    Awesome video! :) Thank you!

  • @jherr
    @jherr 4 года назад +1

    Another high quality video! You're crushing it! A good followup would be some content around what's pure and what has side effects in the base language (e.g. Array.(map|reduce|etc.) vs Array.sort).

    • @IjemmaOnwuzulike
      @IjemmaOnwuzulike  4 года назад +1

      I love that idea 🤩I think relating these topics back to the base language really helps people understand the importance of them

  • @HeyRyanHaskell
    @HeyRyanHaskell 4 года назад +1

    Great video, I love it! 💯

  • @vinothkumarv9722
    @vinothkumarv9722 3 года назад

    I really enjoyed this topic and your explanation is great..... Dude.
    May I know u r from which country...🙏🙏🙏

  • @yashpandey9550
    @yashpandey9550 4 года назад

    Hi, just a small clarification. At 4:11 you said: "Arguments of methods are actually references to their original value.". Thought this is true in case of passing non-primitive values such as an Array or a user-defined object as an argument to a function but when primitives like number, boolean, etc are passed to a function then they are passed by value and not reference. Great content btw. :) Subscribed!

    • @yashpandey9550
      @yashpandey9550 4 года назад

      Also, at 6:09 in the quiz example shown. If the company name were to be declared as an object with a key companyName & some other impure function might change this object's property then how can we be sure that getIntroduction will always give the same output given the same set of inputs. Because if the variable companyName changes then the function getIntroduction does not know about it and now for the same input variable name we might get a new returned string which is different from the previous cached version!

    • @IjemmaOnwuzulike
      @IjemmaOnwuzulike  4 года назад +1

      oh that's a good catch, thanks for mentioning that!

  • @vitiok78
    @vitiok78 4 года назад +1

    Video actually is very useful for beginners. But... Beginners don't think about these kind of things before they meet their own precious sufferings of side effects. So it will be better to show them those bugs on more "realistic" examples to send them into developer's catharsis))

    • @IjemmaOnwuzulike
      @IjemmaOnwuzulike  4 года назад +2

      lol developer's catharsis, I like the idea of showing realistic examples, I gotta keep that in mind for future videos 🙌🏾

  • @madebylewis
    @madebylewis 4 года назад

    +1 for examples referencing anime ⚓️