Kotlin Flows in a Nutshell

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2020
  • In this video you will learn everything about flows in Kotlin that you need to know.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses...
    Regular Android tutorials on my Instagram: / _philipplackner_
    Checkout my GitHub: github.com/philipplackner

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

  • @chimezieorji-unegbu7110
    @chimezieorji-unegbu7110 2 ปีที่แล้ว +5

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

  • @alekseyyakovlev6924
    @alekseyyakovlev6924 3 ปีที่แล้ว +27

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

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

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

  • @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!

  • @user-jx5or8pk2m
    @user-jx5or8pk2m 2 ปีที่แล้ว

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

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

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

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

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

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

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

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

    Thanks for this - very good demonstration.

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

    Very good explanation Phil!

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

    Kotlin makes it so easy. Great video!

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

    Amazing as always thanks!

  • @i.umarov5245
    @i.umarov5245 2 ปีที่แล้ว

    Thanks for the video!

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

    simple and excellent as usual

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

    Thanks dear Philipp , that was very good tutorial

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

    Thank you, great explaining

  • @Kunal-jp8tn
    @Kunal-jp8tn 2 ปีที่แล้ว

    Thanks for this quality content.

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

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

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

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

  • @ronn1NNNNN
    @ronn1NNNNN 3 ปีที่แล้ว +43

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

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

    Awesome broth keep inspiring us through ur code

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

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

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

    thnx, as always top!

  • @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!

  • @ss-xn5rw
    @ss-xn5rw 3 ปีที่แล้ว

    you made flow very easy ,, thanks

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

    great video man , keep it up

  • @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..!!! :) :) :)

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

    Thanks!!!

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

    Great 👍

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

    an amazing video , tnx

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

    Thanks a lot

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

    Liked your content.

  • @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

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

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

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

    I'm your fan ♥️

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

    life saving

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

    thanks

  • @theonlyarjun
    @theonlyarjun 3 ปีที่แล้ว +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

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

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

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

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

  • @wenlongteo6272
    @wenlongteo6272 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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

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

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

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

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

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

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

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

    From where do you learn these new concepts?

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

    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  3 ปีที่แล้ว +1

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

  • @micahspecial5927
    @micahspecial5927 9 หลายเดือนก่อน

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

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

    thanks fleep

  • @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?

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

    Which plugin have you used for colorful logs in Logcat?

  • @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.

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

    next stateFlow and sharedFlow please

  • @iam-learning6374
    @iam-learning6374 3 ปีที่แล้ว

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

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

    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  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 TH-cam here

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

    Reminds me of Flutter Stream Builder

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

    This looks similar to RxJava Observable and Observer

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

      It is, but based on coroutines

    • @rahulkumar-td7pn
      @rahulkumar-td7pn 3 ปีที่แล้ว

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

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

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

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

      No but I might publish it to playstore

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

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

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

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

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

    Can you create Kotlin Multiplatform tutorials?

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

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

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

    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  3 ปีที่แล้ว

      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

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

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

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

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

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

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

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

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

      you can change it in the settings

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

      How

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

      @@PhilippLackner howwww

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

      @@yasminedwedar8651 in the settings search 'logcat' and change colors

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

    hi

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

    you're the real android god

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

    Just like rxJava

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

    and yeah the beards :)

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

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

  • @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...

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

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

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

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

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

    live data on steroids hhahaha