Opaque Type vs Protocol in Swift | Associated Type | Generics | iOS

  Рет қаралды 26,575

iCode

iCode

Күн бұрын

Пікірлер: 55
@arunbenjamin8278
@arunbenjamin8278 3 жыл бұрын
Your topics Selection is good where developers get lot of confusions.
@bapathimallikadevi9601
@bapathimallikadevi9601 2 жыл бұрын
crystal clear explanation . Really appreciate the way you are teaching others
@piyushgeorge1847
@piyushgeorge1847 3 жыл бұрын
Your channel covers very useful topics. keep up the good work 👍👍👍
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Piyush 🙂
@ShubhamGupta-qo2pt
@ShubhamGupta-qo2pt 3 жыл бұрын
Worth watching on Monday with breakfast :), keep up the good work.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Shubham 🙂
@maheshparmar5647
@maheshparmar5647 11 ай бұрын
You really cleared all the doubts related to the topics..🙌
@iCode_Happy_Coding
@iCode_Happy_Coding 11 ай бұрын
Glad to hear that
@jeevank8550
@jeevank8550 3 жыл бұрын
All of your videos are very informative. Especially for Senior or Mid-Senior level iOS devs like me.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Glad that you liked the videos 🙂
@anaghabhagwat7771
@anaghabhagwat7771 4 ай бұрын
Very well explained.👍Thanks for sharing your knowledge !!
@vinayakpaul2251
@vinayakpaul2251 3 жыл бұрын
I have learnt a lot from your channel even possess lot of experience in Swift. Keep up the good work
@nitishnayak8664
@nitishnayak8664 3 жыл бұрын
well done Pallav . crystal clear explanation . Really appreciate the way you are teaching others.
@keshurai2700
@keshurai2700 3 жыл бұрын
Your selection of topics is so good.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Keshu 🙂
@shantibhatt4867
@shantibhatt4867 3 жыл бұрын
Thank you, It's very helpful Please do videos on SOLID principles and xcode instruments usage
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the suggestion Shanti. I'll try covering it 🙂
@King_Slayer_06
@King_Slayer_06 11 ай бұрын
Thanks for the great explaination Pallav! At 11:57 i was getting suggestion to change the return type to "any Card" instead of "some Card" (Im using Xcode 15.0.1). What is the difference between "any" and "some"?
@pr1tham
@pr1tham 3 жыл бұрын
Very good content, Please keep this up. Thanks.
@dhavalumraliya2307
@dhavalumraliya2307 3 жыл бұрын
Just perfect 🔥🔥🔥🔥🔥 it would be very great if you make a video on web socket.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the suggestion Dhaval. I'll try covering it 🙂
@shanmugamsekar4044
@shanmugamsekar4044 6 ай бұрын
very well explained.👍
@seunolalekan8987
@seunolalekan8987 3 жыл бұрын
Thanks a bunch man! This was an excellent explanation.
@ananthakrishna9672
@ananthakrishna9672 3 жыл бұрын
Great information. I have small doubt how to decide struct vs class
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the suggestion Anantha 🙂. I’ll try to cover class vs struct in detail (including usage).
@ananthakrishna9672
@ananthakrishna9672 3 жыл бұрын
@@iCode_Happy_Coding thank you.
@VinothKumar-zl2ht
@VinothKumar-zl2ht 3 жыл бұрын
Super videos, please upload in 1080p.. its good in UHD monitor.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the feedback Vinoth, I’ll look for it 🙂
@pawanmanjani1298
@pawanmanjani1298 3 жыл бұрын
Superb Keep posting🙂
@akshaygawade272
@akshaygawade272 3 ай бұрын
is it build error because associated Type is protocol or it can be give build error even if associated type is string.
@LittleLearners-junior
@LittleLearners-junior 3 жыл бұрын
superb videos please keep uploading.
@MrAbhijithadkar
@MrAbhijithadkar 3 жыл бұрын
You should consider uploading 2-3 videos @pallav. Nice topic covered very easily. Thanks and keep it up.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Sure Abhijit, I'll try covering theses topics in detail. 👍🏼
@ankitbhana9852
@ankitbhana9852 3 жыл бұрын
Just amazing🙌🏻
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks 🙂
@dhivyavenkatachalam7724
@dhivyavenkatachalam7724 2 жыл бұрын
Indeed useful video!!
@puneetpal1466
@puneetpal1466 3 жыл бұрын
It was awesome... Thank you so much :) 😊
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
You're so welcome! 🙂
@otniel2663
@otniel2663 3 жыл бұрын
thanks for sharing
@vickywang5049
@vickywang5049 Жыл бұрын
My takeaways: Generics is the placeholder of types used in functions signatures (like a template). It allows the caller to decide the actual type whereas the function doesn't care about it at implementation. Syntax: func function -> [T] {} Opaque type is a placeholder in function returns. It hides the concrete type from the caller, but the function's implementation and compiler knows exactly what it is. Syntax: with keyword "func function() -> some Protocol{}" Associated type is the type placeholder inside of protocols. It makes protocols more generic. Anyone who adopts from protocols with associatedtype must specify the actual type first. Syntax: associatedtype typename Protocol is the "blueprint" of a set of properties and functions that must be implemented if a structure, class, protocol wants to conform to it. Syntax: protocol protocolName {}
@vickywang5049
@vickywang5049 Жыл бұрын
An example that can be solved by opaque type: If you have a generic protocol with associatedtype, and you don't want to reveal the concrete type of the function returns to the caller, you can use "some" keyword to return an opaque type instead.
@krishnachowdary8447
@krishnachowdary8447 2 жыл бұрын
Love you man
@abymathew575
@abymathew575 3 жыл бұрын
nice explanation bro.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks 🙂
@reshmaunni7017
@reshmaunni7017 3 жыл бұрын
Thank you so much sir
@ANILKUMAR-vv1fz
@ANILKUMAR-vv1fz 3 жыл бұрын
it was awesome
@deveshtyagi
@deveshtyagi 3 жыл бұрын
Amazing
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks 🙂
@keshavkumar1522
@keshavkumar1522 3 жыл бұрын
Thank you so much for your effort in delivering such kind of valuable content on youtube. All your videos are so informative with a practical example. Wishing you and our channel great success. Keep doing a lot. Kindly do videos on MVVM-C, MVP, VIPER Patterns. Most of the developers struggle with animation stuff. So, please do a tutorial series on CoreAnimation, BezziarPath, Custom Layouts, etc. Thanks again.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the kind words Keshav. Did a video on Bezier Curves after your suggestion 🙂
@deveshtyagi
@deveshtyagi 3 жыл бұрын
🔥
@iamarorarishabh
@iamarorarishabh 2 жыл бұрын
👍👍
@maqusss
@maqusss 2 жыл бұрын
I saw much better example on hackingwithswift. Consider functions makeInt and makeString that both return "some Equatable". Compiler will allow comparison "makeInt() == makeInt()" or "makeString() == makeString()" but won't allow "makeInt() == makeString()".
@victorriurean
@victorriurean Жыл бұрын
Inheritance vs Interfaces (Protocols) In Swift
18:43
iCode
Рет қаралды 15 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
What are Business Rules? It's not this.
10:58
CodeOpinion
Рет қаралды 31 М.
MVVM + Dependency Injection in Swift | Unit Testing | iOS
29:29
Generics in Swift: Protocols with associated types
15:37
Swift and Tips
Рет қаралды 10 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 198 М.
TypeScript: Should you use Types or Interfaces?
4:06
Matt Pocock
Рет қаралды 168 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН