ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Functional JavaScript Tutorial - #3 Side Effects & Pure Functions

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ส.ค. 2024

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

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

    That's very good explanation of side effects and pure function. Greetings from India!

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

    But date takes input the elapsed time since 1970 and the same input produces the same output, and doesnt have side effects so its a pure function.

  • @abdelrahmanmagdy8946
    @abdelrahmanmagdy8946 4 ปีที่แล้ว +1

    great ❤👌👍

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

    Will you be talking about how to handle side effects in a future video? E.g., use Effect functors or with dependency injection? Or if you've already covered the topic, please could you share the relevant link(s)? Thanks!

  • @nc581
    @nc581 4 ปีที่แล้ว +2

    Hey can u share this file

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

    = new Date() does not produce side effects and is a built-in function. Output changes when input does not, because it's the time, and the computer is otherwise calibrating for it. If that makes it impure for Functional Programming usage, does that reveal a dysfunctional rigidity about morbid adherence to vs organizational modularity of a paradigm concept? Might we consider, for the instance, it is deterministic outside the control of the programmer, because that is time?