Kotlin Flows in a Nutshell

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

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

  • @chimezieorji-unegbu7110
    @chimezieorji-unegbu7110 3 года назад +7

    Your basic videos are almost always enough to keep me going on my huge project. Thanks a bunch

  • @shubhamnaik1982
    @shubhamnaik1982 3 года назад +5

    You are the only one on RUclips Providing In-Depth Knowledge for Android App Development Using Kotlin and it really helped bro 😍🙏

  • @alekseyyakovlev6924
    @alekseyyakovlev6924 4 года назад +28

    Thanks for the tutorial, can you make a video with comparing Flow vs StateFlow vs SharedFlow?

  • @이수연-p1f9n
    @이수연-p1f9n 2 года назад

    Really easy to understand.. you woudln't know how much I appreciate you by this tutorial. Thx alot!

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

    You are my go to teacher when it comes to Kotlin and android ....Good job

  • @maaatin1
    @maaatin1 3 года назад +4

    The Greek God (exept he's German, I would suspect, from his accent) of consise, incredibly informative Android tutorials for devs at any level. This guy is literally making me $$$. Thank you!

  • @shidqi100
    @shidqi100 4 года назад +7

    Nice video man, i really hope you make kotlin flow as a series with depth explanation and example project

    • @PhilippLackner
      @PhilippLackner  4 года назад +3

      That's what I do in my Ktor course on pl-coding.com for caching

  • @pierre.vieira
    @pierre.vieira 2 года назад

    Thank you very much for this video. I've always used flow but I didn't really understand how it worked, now it's all clearer!

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

    Fantastic explanation! I finally get back pressure! Thank you so much.

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

    Kotlin makes it so easy. Great video!

  • @xenofonkarydis6406
    @xenofonkarydis6406 3 года назад +4

    So we are waiting for a WebSocket with Flows lesson (and especially how to get informed about the end-points disconnection, or a ping-pong mechanism) from you..!!! :) :) :)

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

    Thanks dear Philipp , that was very good tutorial

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

    Good as always. Hope you keep producing such content to educate us. Thanks!

  • @theonlyarjun
    @theonlyarjun 4 года назад +3

    how did you get the rainbow logcat, is that a plugin or you manually configured it?

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

      Yes. Rainbow Brackets is the plugin

  • @mikec4220
    @mikec4220 3 года назад +1

    "Flows are like LiveData on steroids!" hahhahah nailed it! Loved it

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

    Thanks for this - very good demonstration.

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

    Whenever I have any doubts I type philip lanker the concept name.

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

    Very good explanation Phil!

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

    Hi, your explanation is so good and details, I might consider to subscribe to your course :)
    One question is that what plugin you used for your logcat?
    And also recently I working with paging3 Android, maybe you can consider to work on a tutorial on that

    • @PhilippLackner
      @PhilippLackner  4 года назад +4

      Thanks! That's not a plugin, just press Ctrl+Alt+S to open settings and search for logcat. There you can change the colors

  • @leonardosibela
    @leonardosibela 3 года назад +3

    Flow is like design patterns. It's not so easy to understand how it works. The hard part is to understand when to use them.

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

      well not really, just use it as a replacement of live data, pretty straight forward

  • @ronn1NNNNN
    @ronn1NNNNN 4 года назад +43

    when its Kotlin and Android development learning, you are next to God.

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

    Amazing as always thanks!

  • @dindjarin2628
    @dindjarin2628 3 года назад +3

    'emit' and 'collect' reminds me with Plant vs Zombie, where we have to collect sunlight emitted from sunflowers.

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

    Thank you, great explaining

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

    simple and excellent as usual

  • @Kunal-jp8tn
    @Kunal-jp8tn 2 года назад

    Thanks for this quality content.

  • @i.umarov5245
    @i.umarov5245 2 года назад

    Thanks for the video!

  • @ss-xn5rw
    @ss-xn5rw 3 года назад

    you made flow very easy ,, thanks

  • @micahspecial5927
    @micahspecial5927 11 месяцев назад

    Hi Philips, can you explain about gradle build, and which one to use? i always got error there but the code is fine :(

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

    Awesome broth keep inspiring us through ur code

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

    if i wish to build a Tic Tac Toe game that requires the user to click a box and make his turn every 30 seconds ( at the max ), then is using firebase cloud firestore better or i need to use a websocket for this stuff ? ( i mean for sending and receiving what the other user clicked in his turn )

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

      I'd use websockets, with firebase it's hardly possible to do something based on time

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

    thanks! How do you get colorful log like in 6:50 ?

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

    great video man , keep it up

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

    From where do you learn these new concepts?

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

    Hii nicely explained
    I'd like to say one thing though i.e. when you say they both are running in the same Coroutines, it's not true. Flow builder has its own Coroutine and Global scope.launch has its own Coroutine.

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

    Very nice. Maybe you can use this to your next tutorial. 😉

  • @Tech-To-Logic
    @Tech-To-Logic 3 года назад

    Philipp, which thread this flow coroutine run? Can I define dispatcher with this flow? How to manage that?

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

    thnx, as always top!

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

    I'm your fan ♥️

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

    Great, thanks. How is flow comparing to rx.java?

  • @iam-learning6374
    @iam-learning6374 3 года назад

    Hi Philipp - Could you please make one video on Android KTX... thanks in Advance.

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

    Which plugin have you used for colorful logs in Logcat?

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

    So you were working on DoodleKong from October 2020 or before... WOW

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

    Thanks a lot

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

    next stateFlow and sharedFlow please

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

    Thanks!!!

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

    Liked your content.

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 4 года назад +5

    This looks similar to RxJava Observable and Observer

    • @PhilippLackner
      @PhilippLackner  4 года назад +4

      It is, but based on coroutines

    • @rahulkumar-td7pn
      @rahulkumar-td7pn 3 года назад

      so flow acts as both observable or flowable and observer or subscriber

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

    I don't know about the "they are basically LiveData on steroids" part.
    It's not exactly the same thing and saying that they are very similar might bring some confusion on the topic.
    I think making sure that people understand the use case for each one of these is important, especially as we all move away from LiveData into the Flow (SharedFlow, StateFlow) world.

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

      Yes, I meant that flows can be a full replacement for livedata, but not the other way around. LiveData is used to represent UI state and flows can do that as well, but can also handle network calls and other suspending functionality

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

    Reminds me of Flutter Stream Builder

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

    Great 👍

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

    life saving

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

    So it's basically channels from Go. They are also implemented in C# BTW :P and pretty much every other language

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

    What about this drawing game with web sockets you talked about? Will you publish it as a playlist?

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

      No but I might publish it to playstore

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

      @@PhilippLackner okay, a tutorial about Scarlet with use of any web socket would be also interesting

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

    Are u planing a mvi tutorial with retrofit and flow too? =)

  • @luuvanthao3679
    @luuvanthao3679 Год назад

    thanks

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

    an amazing video , tnx

  • @imnithish
    @imnithish 3 года назад +1

    you're the real android god

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

    thanks fleep

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

    do you have course for android development with kotlin (in udemy or so), where we can find content in proper arranged manned , so that learning would be easy and in proper curve ?

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

      I have premium courses on my website pl-coding.com, check it out :) Within the next week I'll publish a new course about making a social network android app using Kotlin and Firebase

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

      @@PhilippLackner
      Please, make it free
      I will be grateful to you...
      I have a passion for learning Android
      ...
      Make great use of your channel

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

      @@l00ai it won't be free, it will provide you great value. If you're only looking for free content then I have more than enough on RUclips here

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

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

    I dont know what to type, but i have to comment

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

    I looking for this tutorial , can you make tutorial about channel also

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

    For any non-native-English-speakers: This weird word he is using is "coroutines" :-) I am really not used to hear this word...

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

    How to you make logcat with colors and not print all android bullshit like in your android studio?

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

    Just like rxJava

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

    ko-rutihn nicht kuh-rutihn, wie in collaborate. Ansonsten top-notch work dude!

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

    hi

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

    and yeah the beards :)

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

    Philips must be in love with Indians as most views are from Indian only😂

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

      If 10 guys ring on your door, are you in love with guys then?

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

    live data on steroids hhahaha