Kotlin Flows in a Nutshell

  Рет қаралды 58,209

Philipp Lackner

Philipp Lackner

3 жыл бұрын

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 жыл бұрын
Your basic videos are almost always enough to keep me going on my huge project. Thanks a bunch
@alekseyyakovlev6924
@alekseyyakovlev6924 3 жыл бұрын
Thanks for the tutorial, can you make a video with comparing Flow vs StateFlow vs SharedFlow?
@shubhamnaik1982
@shubhamnaik1982 3 жыл бұрын
You are the only one on KZfaq 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 жыл бұрын
Nice video man, i really hope you make kotlin flow as a series with depth explanation and example project
@PhilippLackner
@PhilippLackner 3 жыл бұрын
That's what I do in my Ktor course on pl-coding.com for caching
@ronn1NNNNN
@ronn1NNNNN 3 жыл бұрын
when its Kotlin and Android development learning, you are next to God.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks a lot man!
@yutaitadori7318
@yutaitadori7318 3 жыл бұрын
Yesss🥺
@niranz7745
@niranz7745 3 жыл бұрын
Couldn't have said it any better. Amazing.
@prasuguna
@prasuguna 3 жыл бұрын
Awesome broth keep inspiring us through ur code
@mikec4220
@mikec4220 3 жыл бұрын
"Flows are like LiveData on steroids!" hahhahah nailed it! Loved it
@RRRazzzaRRR
@RRRazzzaRRR 2 жыл бұрын
thnx, as always top!
@maaatin1
@maaatin1 3 жыл бұрын
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
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks, will do!
@xenofonkarydis6406
@xenofonkarydis6406 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
'emit' and 'collect' reminds me with Plant vs Zombie, where we have to collect sunlight emitted from sunflowers.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
hahaha yea
@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 жыл бұрын
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?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
flow.flowOn(yourDispatcher)
@MDDanishAnsariDev
@MDDanishAnsariDev 3 жыл бұрын
Which plugin have you used for colorful logs in Logcat?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
No plugin, just Android Studio settings
@MDDanishAnsariDev
@MDDanishAnsariDev 3 жыл бұрын
@@PhilippLackner Got it. Thanks.
@yasminedwedar8651
@yasminedwedar8651 3 жыл бұрын
@@PhilippLackner how
@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 жыл бұрын
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 жыл бұрын
@@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 жыл бұрын
@@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 KZfaq here
@Igalsr
@Igalsr 3 жыл бұрын
Reminds me of Flutter Stream Builder
@pradeepkumarreddykondreddy7048
@pradeepkumarreddykondreddy7048 3 жыл бұрын
This looks similar to RxJava Observable and Observer
@PhilippLackner
@PhilippLackner 3 жыл бұрын
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
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Noted
@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 жыл бұрын
you're the real android god
@victorelezua
@victorelezua 3 жыл бұрын
Just like rxJava
@PhilippLackner
@PhilippLackner 3 жыл бұрын
yes but with coroutines
@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
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Philipp Lackner
Рет қаралды 95 М.
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
derivedStateOf VS. remember(key) - THIS is Really the Difference 🤯
14:46
Flow Basics - The Ultimate Guide to Kotlin Flows (Part 1)
17:26
Philipp Lackner
Рет қаралды 129 М.
LiveData with Coroutines and Flow (Android Dev Summit '19)
18:44
Android Developers
Рет қаралды 110 М.
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 27 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
How to avoid 5 common Kotlin Coroutine mistakes
15:59
Lukas Lechner - Advanced Android Development
Рет қаралды 4,7 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 159 М.