Event-Driven Programming

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

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

  • @codeangler
    @codeangler 7 ปีที่แล้ว +7

    Thanks for this video. Clear introduction of ideas. Each of the example built on complexity and this was helpful for me to understand it.

    • @NERDfirst
      @NERDfirst  7 ปีที่แล้ว +1

      Hello and thank you very much for your comment! Very happy to be of help =)

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

    Bro explained it better then my teacher

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

      Hello and thank you very much for your comment! Glad you liked the video =)

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

    I'm liking the new update schedule!

    • @NERDfirst
      @NERDfirst  7 ปีที่แล้ว +1

      Thank you! This is actually my usual update schedule, and I was on hiatus before =P

  • @jamiemeadowcroft6744
    @jamiemeadowcroft6744 5 ปีที่แล้ว +8

    you just made a mockery of Salford City College, UK England in 1minute 47seconds because its taken them 3months to explain (very poorly) what you explained much simpler in a much shorter time.

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

      Hello and thank you very much for your comment! Very happy to be of help =)

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

    Thanks for the heads up on a tick event. This helps me a lot, even though I'm working with just Arduino. Your presentation of the concepts sounds good. I'll make notes and attempt an application with various hardware and software. Thanks again.

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

      Hello and thank you for your comment! Since you mentioned Arduino, Arduinos have interrupts, which act a lot like events and event handlers, it's a really interesting topic that can up your Arduino game when used right! If this is a topic that interests you, I've done a video here in the past that you might like to look over: th-cam.com/video/uK6w5OP2FVc/w-d-xo.html

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

    Great explanation! Thank you. :-)

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

      You're welcome! Very happy to be of help =)

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

    Thanks for this video. It Helped me

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

      You're welcome! Glad to be of help =)

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

    So does this mean that the main program loop is not meant to be a flow of logic but rather a series of function calls based on various user inputs? I'm still trying to wrap my head around it because it seems a little counter-intuitive. Currently trying to write a simple game in python for context

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

      Hello and thank you for your comment! Well, "series of function calls" and "flow of logic" aren't necessarily mutually exclusive. The things that need to happen "over time" in the context of your game (eg. Moving NPCs and simulations forward) will still be triggered by your main loop, and it'll work whether you write it as a function call or not.
      Of course, ideally you'd write it as a function and have it execute asynchronously so your main loop never gets bogged down by this operation.

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

    Well explained

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

      Hello and thank you for your comment! Glad you liked the video =)

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

    Excelent video!

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

      Hello and thank you for your comment! Glad you liked the video =)

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

    So does this mean that events listeners are just a loop that constantly waits for an event to be triggered(Key presses,mouse movements)?

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

      Hello and thank you for your comment! Not usually. They're normally implemented using threading or concurrency techniques, so that when not required, they're completely suspended and yield up any processor time to other processes. This is different compared to a busy wait where they keep polling to see if there are any tasks they need to do.

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

    This is a deferred response.

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

      Hello and thank you for your comment! That is indeed one common application of events and callbacks.

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

    It is nice video.just keep it up

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

      Hello and thank you very much for your comment! Glad you liked the video =)

  • @RunningtoCatchMyBreath
    @RunningtoCatchMyBreath 4 วันที่ผ่านมา

    Let me know if you become a professor, I’ll come take classes at your university

    • @NERDfirst
      @NERDfirst  3 วันที่ผ่านมา +1

      Hello and thank you very much for your comment! No professorship unfortunately, but I _do_ start lecturing at the degree level next year :)

    • @RunningtoCatchMyBreath
      @RunningtoCatchMyBreath 19 ชั่วโมงที่ผ่านมา

      where at???

    • @NERDfirst
      @NERDfirst  16 ชั่วโมงที่ผ่านมา

      Well, I'm based in Singapore so I'll just say it's one of the private universities here. Don't think I want to say any more than that on the internet!

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

    nice intro

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

      Hello and thank you for your comment! Glad you liked the video =)

  • @jibanjoshi320
    @jibanjoshi320 5 ปีที่แล้ว +1

    Thank you sir

    • @NERDfirst
      @NERDfirst  5 ปีที่แล้ว +1

      You're welcome! Glad to be of help =)

  • @HiddenG14
    @HiddenG14 7 ปีที่แล้ว +2

    Notified.

  • @blackzero5592
    @blackzero5592 5 ปีที่แล้ว +1

    Thumbs up from Pakistan.

    • @NERDfirst
      @NERDfirst  5 ปีที่แล้ว +2

      Thank you very much! Glad you liked the video =)

  • @SeamusMcMichael
    @SeamusMcMichael 5 ปีที่แล้ว +1

    Thanks

    • @NERDfirst
      @NERDfirst  5 ปีที่แล้ว +1

      You're welcome! Glad you liked the video =)

  • @m13m
    @m13m 7 ปีที่แล้ว +1

    next video reactive programming

    • @NERDfirst
      @NERDfirst  7 ปีที่แล้ว +2

      Hello and thank you for your comment! I've never heard of that term before but it looks and sounds interesting! I'll see what I can do =)

  • @rahulsoni-lx5rb
    @rahulsoni-lx5rb 2 ปีที่แล้ว

    🙌