Тёмный
No video :(

Kotlin Newbie to Pro - GENERICS - Part 29 

Philipp Lackner
Подписаться 178 тыс.
Просмотров 32 тыс.
50% 1

In this video you will get a basic overview of generics and learn how to implement your own generic functions and classes.
⭐ 300+ Quiz questions for all my videos
⭐ Take notes while watching my videos
⭐ Climb the leaderboard and get rewards
⭐ Create your FREE account now:
pl-coding.com
Checkout my GitHub: github.com/and...
Regular Android tutorials on my Instagram: / android_devs

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@derekkolb6324
@derekkolb6324 6 месяцев назад
just finished the playlist. Thank you so much for this! I am in a beginner college course for mobile app dev and they skimmed over kotlin and threw us into android studio with Compose. I have been soo lost but man, this helped me out a lot! I can't wait to start your Compose playlist.
@davidfz
@davidfz Год назад
As an android developer junior, I needed a refresh course on the Kotlin language, this was just the playlist I needed, i just finished it in accelerated within one full day and it was perfect, you explain every notion very well and the exercises are great, now I'm confident to start new android projects in kotlin, thanks a lot for your work 👋
@anmolverma075
@anmolverma075 Год назад
Hello sir , I'm starting Android in Kotlin,like from scratch. I know java and have done basics of Android in java only ,can I choose this playlist to start Android?
@julesverne1634
@julesverne1634 3 года назад
Just finished the whole Kotlin tutorial. Now I'm heading for the Android videos. Thank you so much for the great work!!!
@PhilippLackner
@PhilippLackner 3 года назад
You're welcome!
@mrunknown1211
@mrunknown1211 Месяц назад
After finishing the playlist, I gotta say one this. THIS MAN IS A LEGEND 👑
@cinnybun739
@cinnybun739 2 года назад
I finished the entire playlist. Man this was awesome. You cleared all my concepts. LOVE YAAAAAAAAAAAA!
@VikashSingh-dn7kk
@VikashSingh-dn7kk Год назад
For last example, every Type (T) that extend Number can be converted to Double without losing its precision value. & then we can convert the sum back to Type (T) @Suppress("UNCHECKED_CAST") fun List.customSum(filter: (T) -> Boolean): T { var sum = 0.0 for (item in this) { if (filter(item)) { sum += item.toDouble() } } return sum as T }
@annaberkovitch85
@annaberkovitch85 2 месяца назад
Hey, Philipp! Old video, I know, but I hope you get this comment anyway, because the amount of gratitude I feel to you at this moment is simply immeasurable. I'm not exactly new to Kotlin, but neither do I have a lot of coding experience in it. This morning I was building a repository for reading from and writing to DataStore, and, seeing as I'd never used generics in Kotlin before, I was struggling with creating just two general functions to get the job done. I know to you, and many experienced programmers here, this might seem trivial, but I just kept failing, and kept trying, because I KNEW there HAS to be a way more refined than writing a dozen of functions for writing and reading every single type. As embarrassed as I feel even writing it in this forum, I have to tell you that suddenly I remembered your Kotlin playlist, and I only had to get to 3:28 when it hit me like a lightening, and now, thanks to this video of yours from 4 years ago, I have that elusive finesse I've been desperately searching for. Thank you. Just thank you. From a happy newbie who's so-so proud of her first two generic type functions.
@PhilippLackner
@PhilippLackner 2 месяца назад
So happy to help, thanks for sharing!🙌
@JunaidAzad
@JunaidAzad 4 года назад
Nice video. [Minor] For the generics customSum() you can also take the initial sum value as input parameter avoiding the need to check for class types to decide it.
@Tech-To-Logic
@Tech-To-Logic 4 года назад
Great representation skill. I was expecting covariance and contravariant with in and out keyword. Expecting next video would be about that.
@alh311
@alh311 Год назад
OMG I MADE IT THROUGH THE WHOLE COURSE! YOU DA MAN LACKNER! I hope you have a good day, bye-bye!
@TerryNarc
@TerryNarc Месяц назад
Thanks for this amazing serie, it was really clear and I enjoyed learning Kotlin through your videos !
@MrLunaable
@MrLunaable 3 года назад
Great playlist, came here after seeing you on Traversy media, really appreciate your videos. keep it up! :)
@PhilippLackner
@PhilippLackner 3 года назад
Thanks!
@Jonnhy0989
@Jonnhy0989 Год назад
Thanks a lot, Philipp! You are a very good teacher/instructor! Thanks for all you give.
@the_nomadic_ajith
@the_nomadic_ajith Год назад
One thing i love about your presentation is you always call out keyboard shortcuts. I have seen developers with 5 years experience still using manual mouse pointer for everything
@daiyrkanybekov8575
@daiyrkanybekov8575 3 года назад
Great Tutorial Bro! I have watched all your videos from the beginning till the end. Thank you Philipp because of you I already know the basics of Kotlin!
@pickleali
@pickleali Год назад
Just finished the whole series. Thank you so much Philipp for the hard work! Much appreciated
@geraldlee2341
@geraldlee2341 3 года назад
Hi, I'm learning Kotlin and these videos are great! I just wanted to point out one confusing thing to me while I was watching. Why is it possible to call List.customFilter on a List, List, etc..? Answer: It's because Kotlin has declaration-site variance and the definition of generic List is: public interface List : Collection { ... }. The "out E" makes it covariant. e.g. List is a subtype of List. And we can do this because List is read-only
@nithinrupireddy7540
@nithinrupireddy7540 3 года назад
Thanks for great playlist. Now I'm good with kotlin basics and I'm heading to Kotlin Android tutorials. Keep continuing and wish you all the best .Love from India❤
@goobar
@goobar 4 года назад
Nice 👍👍. Generics can be tricky.
@PhilippLackner
@PhilippLackner 4 года назад
Yes, but most of the time it's more about understanding what they are instead of implementing crazy generic classes by yourself😁
@hdfoodballmoments
@hdfoodballmoments 3 года назад
Kotlin is super powerful. Thank you Philipp for these awesome tutorials on Kotlin :)
@Luffy_2804
@Luffy_2804 Год назад
finally completed kotlin now can start android dev with kotlin let's see how it goes thank you for this amazing course
@favour2871
@favour2871 2 года назад
finished 😀 learned a good amt, lambda functions are a bit tricky though but I have confidence to do my own projects now
@osmanmusse9432
@osmanmusse9432 2 года назад
Wow Philipp is soo good at explaining, well done bro keep going your the best android mentor
@PhilippLackner
@PhilippLackner 2 года назад
Thanks bro!
@TheImaginativeSachin
@TheImaginativeSachin Год назад
Holy heck.. This was quite the ride. I finished the playlist.😁
@kd7944
@kd7944 2 года назад
It was really awesome. Thank you very much.
@jacques470
@jacques470 2 года назад
Really awsome! I did everyone of them. Now, move on to your android list.
@Shengdanya
@Shengdanya 10 месяцев назад
Thank you so much Philipp. You are amazing.
@srikrishnanunna1
@srikrishnanunna1 11 месяцев назад
Kotlin Generics is in itself a big topic. At the end of the video, you stumbled upon a topic of generalizing the sum counter. It would have been a very good video if that generic code was complete. :(
@damolaOnikoyi
@damolaOnikoyi 4 месяца назад
Awesome Playlist. Thanks Philipp
@lutherevangelista605
@lutherevangelista605 2 года назад
Just finished the whole playlist. The best I can do is liked all the videos on the playlist and subscribe as a payment for the incredible free content.
@PhilippLackner
@PhilippLackner 2 года назад
Thank you🙏
@user-uy8rw4yw1t
@user-uy8rw4yw1t 5 месяцев назад
Pair - not Tuple! Your videos are perfect anyway
@coderbhai3701
@coderbhai3701 2 года назад
Thanks for the playlist, was fun watching and doing exercises. I finished the entire playlist. Man this was awesome.
@starry_shivam
@starry_shivam 2 года назад
Thankyou so much for this series, looking forward to your android fundamentals series now!
@abuiman5251
@abuiman5251 2 года назад
Thank you for such a great playlist! I wish you all the best in your life bro🤍. Keep teaching us and I am sure your efforts will pay off!
@FahmiEshaq
@FahmiEshaq 3 года назад
Thank you I watched all of your Kotlin new to pro. Well done
@speedrocketstudios5168
@speedrocketstudios5168 Год назад
Thanks my man! Super helpful. On to your compose tutorials now…
@younesscoder
@younesscoder Год назад
Thank you so much for this course it was very helpful, I think I'm ready to get deeper and learn more 😄
@amineayachi335
@amineayachi335 3 года назад
Well done man i just finished your playlist wish you all the best
@PhilippLackner
@PhilippLackner 3 года назад
Much appreciated
@pyroboomka4587
@pyroboomka4587 2 года назад
Thanks for the playlist, was fun watching and doing exercises. Hope the android is gonna be this fun too!
@sohaibkhan845
@sohaibkhan845 2 года назад
Great playlist for learning Kotlin basics
@marcosdecristobal9122
@marcosdecristobal9122 4 года назад
Great videos man!! Excelent explanations! Keep it up!!
@PhilippLackner
@PhilippLackner 4 года назад
Thank you🙏🙏
@ZANO439
@ZANO439 3 года назад
Thanks for making generics easy to understand :)
@rowenarrow
@rowenarrow 2 года назад
Made it through all 29 vids :D
@itamarribeiro8865
@itamarribeiro8865 3 года назад
Thanks Philipp Lackner
@ahmedabolftouh3124
@ahmedabolftouh3124 3 года назад
Great 👍👍👍 man, keep the hard working, you finally made me understand it
@st.libertos
@st.libertos 2 года назад
Thank you very much for this amazing playlist!
@user-yf9fz8zr7r
@user-yf9fz8zr7r Год назад
Thanks a lot for the job you did! Which playlist would you recommend as a continuation in order to become an Android developer?
@NoahCalar
@NoahCalar 5 месяцев назад
Love the vids, Philipp! Quick question -- When running the printTypes() function, the console print is telling me that the Kotlin reflection is not available. Is this a versioning issue or something? I am using IntelliJ IDEA 2023.3.3
@kanutso2425
@kanutso2425 2 года назад
Thanks man!
@linqcodmax8965
@linqcodmax8965 4 года назад
SOOO Cooool!!!!Will there be new videos about Kotlin?)
@PhilippLackner
@PhilippLackner 4 года назад
Thank you! I might add videos to this series later on, but for now I have enough other projects planned. The videos in this series will be enough to jump into android development and that was my focus 😁
@moriz8549
@moriz8549 3 года назад
awesome tutorials, with details which is great ⭐⭐⭐⭐⭐ Thanks man
@PhilippLackner
@PhilippLackner 3 года назад
Glad you like them!
@yunierolivera5091
@yunierolivera5091 Год назад
Thanks!
@pradipshelake3003
@pradipshelake3003 2 года назад
Amazing tutorial bro, Thank you for a such amazing contents
@parulson6274
@parulson6274 2 года назад
You are awesome man. Thank you a lot.❤️
@clanofdevelopers
@clanofdevelopers 11 месяцев назад
Thanks Just Become Newbie to Pro
@salaccarljosepht.8681
@salaccarljosepht.8681 10 месяцев назад
I am pro now, thanks.
@gutic4824
@gutic4824 4 года назад
Nice explanation. Thanks a lot!!!
@user-ve6kt7uj5r
@user-ve6kt7uj5r 4 года назад
Great course man!
@namanmurarka9252
@namanmurarka9252 2 года назад
the only reason i chose this tutorial over the others because it was 4k lol
@mrpi230
@mrpi230 4 года назад
Thank You Brother.
@hokulele911
@hokulele911 Год назад
it shows "java.lang.Integers (Kotlin reflection is not available)" when i run the code, any solution?
@abdremo
@abdremo 4 года назад
Thank you sir 🤘🏿
@PhilippLackner
@PhilippLackner 4 года назад
You're welcome 😎
@WealthVibe1
@WealthVibe1 Месяц назад
is it okay to just have knowledge of generics , or should i practice it? kotlin null always irritates me
@Joe-sm7mf
@Joe-sm7mf 2 года назад
I am having trouble and I know that I am late to the party but I get errors that look like "The type of second is class java.lang.String (Kotlin reflection is not available)". I've tried to get reflection to work... has this been removed from later version of the Kotlin standard library? I can get the java type with ${second::class.java}.
@mdjahidulislam9205
@mdjahidulislam9205 3 года назад
Covariance and Contravariance you did not talk about it?
@samthomas1799
@samthomas1799 3 года назад
Great stuff
@TheImaginativeSachin
@TheImaginativeSachin Год назад
Hey Philipp. I have a question which playlist of yours should i follow if i want to start making android apps?
@hannoushy583
@hannoushy583 3 года назад
Thanks, very helpful content. what should be the next step after mastering the Kotlin basics? I would really apperciate if you recommend the next palylist. Thanks.
@PhilippLackner
@PhilippLackner 3 года назад
Android fundamentals 👍
@paulvickers8059
@paulvickers8059 3 года назад
could have added data classes, enums and maps, otherwise great course
@sandeep_khariwal8137
@sandeep_khariwal8137 2 года назад
this is complete playlist for Kortlin???
@aminuidris9388
@aminuidris9388 4 года назад
Easy stuff, thanks
@PhilippLackner
@PhilippLackner 4 года назад
You're welcome!
@colouruz6700
@colouruz6700 3 года назад
hello i have a question for you how are you In Kotlin it is necessary to subtract the greater of 3 numbers using the generic function. I have the> = sign not working
@peachhaven
@peachhaven 9 месяцев назад
Hello, I need help, where do i go from here especially on this channel?
@caof2005
@caof2005 3 года назад
how could I get the size of any nbject of any Type in Kotlin?
@vengateshm2122
@vengateshm2122 3 года назад
Need a tutorial on in and out keyword.
@shaiquekhan1185
@shaiquekhan1185 3 года назад
In the customSum function... can't we intialize sum with value (T - T)??
@pilotla7674
@pilotla7674 8 месяцев назад
sorry what's next video
@brucebane7401
@brucebane7401 3 года назад
best !!!!!
@ajaydeepak9739
@ajaydeepak9739 4 года назад
Nice video thanks, where can I find the code in the video.
@user-ve6kt7uj5r
@user-ve6kt7uj5r 4 года назад
in the video:)
@ajinkyakumbhar595
@ajinkyakumbhar595 4 года назад
What about interfaces , are they absent in kotlin ??
@PhilippLackner
@PhilippLackner 4 года назад
No you can still use them and sometimes you have to, but you don't need them as often as in java because you should normally prefer making your callback functions as lambda functions
@ajinkyakumbhar595
@ajinkyakumbhar595 4 года назад
@@PhilippLackner can you please make a video on that . Thnks.
@PhilippLackner
@PhilippLackner 4 года назад
@@ajinkyakumbhar595 the concept is very similar to abstract classes
@guy1407
@guy1407 4 года назад
Hi , I really enjoyed watching this playlist. Thanks a lot :)
@PhilippLackner
@PhilippLackner 4 года назад
Glad you enjoyed it!