Generator Functions will make your code cleaner 🧹

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

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

  • @sadhakbj
    @sadhakbj Месяц назад

    Juat discovered the channel today and instantly fell in love with it. The quality of videos are very high. I love typescript. I myself created one course on node and ts long back. Now i work with go and miss typescript. Your contents help me sharpen my knowledge. Please continue making more and more contents.

    • @TypeScriptTV
      @TypeScriptTV  Месяц назад

      Thank you so much! Where can I see your Node.js & TS tutorial? I am curious! 👀

    • @sadhakbj
      @sadhakbj Месяц назад

      @@TypeScriptTV i am trying to comment the video link but it seems to be deleted by youtube. I don’t know why.

  • @nathanbrodin2948
    @nathanbrodin2948 2 месяца назад +1

    Very clear video, thanks!. This could be a great use case for streaming responses then ?

    • @TypeScriptTV
      @TypeScriptTV  2 месяца назад

      Absolutely! Here, you can see a streaming case: typescript.tv/hands-on/all-you-need-to-know-about-iterators-and-generators/#case-2-fetching-remote-content

  • @Cowboy-Ben-Alman
    @Cowboy-Ben-Alman 2 месяца назад +1

    You could've gone one step further and had the generator yield the individual results so instead of the consuming code iterating over chunks, it would iterate over results.

    • @TypeScriptTV
      @TypeScriptTV  2 месяца назад

      Great idea! Thanks for suggesting it. I'll definitely add this approach to my blog. 👍