Kotlin Flows in a Nutshell

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 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 TH-cam 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?

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

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

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

  • @이수연-p1f9n
    @이수연-p1f9n 2 ปีที่แล้ว

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

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

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

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

    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!

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

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

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

    Kotlin makes it so easy. Great video!

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

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

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

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

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

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

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

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

    Amazing as always thanks!

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

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

    Very good explanation Phil!

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

    Thanks for the video!

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

    next stateFlow and sharedFlow please

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

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

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

    Thanks for this - very good demonstration.

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

    simple and excellent as usual

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

    Thank you, great explaining

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

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

    • @Chintanparmar
      @Chintanparmar 4 ปีที่แล้ว

      Yes. Rainbow Brackets is the plugin

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

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

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

    Thanks for this quality content.

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

    you made flow very easy ,, thanks

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

    I'm your fan ♥️

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

    great video man , keep it up

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

    Awesome broth keep inspiring us through ur code

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

    Which plugin have you used for colorful logs in Logcat?

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

    thnx, as always top!

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

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

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

    From where do you learn these new concepts?

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

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

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

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

    Thanks a lot

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

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

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

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

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

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

    Great 👍

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

    Thanks!!!

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

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

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

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

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

    Liked your content.

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

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

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

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

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

    thanks

  • @Tech-To-Logic
    @Tech-To-Logic 4 ปีที่แล้ว

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

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

    Reminds me of Flutter Stream Builder

  • @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 TH-cam here

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

    an amazing video , tnx

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

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

    life saving

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

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

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

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

    you're the real android god

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

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

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

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

    thanks fleep

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

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

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

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

    Just like rxJava

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

    hi

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

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

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

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

    live data on steroids hhahaha