Method Dispatch in Swift | Static | Dynamic | Message

  Рет қаралды 24,187

iCode

iCode

Күн бұрын

Пікірлер: 64
@RahulP-g4o
@RahulP-g4o 3 ай бұрын
Not more, not less, covers everything to the point in less than 12 mins. You have worked hard. Thanks!
@educationplus8829
@educationplus8829 2 жыл бұрын
Had this topic on my technical interview, couldn't find a better explanation than your video. Thank yo so much!
@afaaqahmedsaqi
@afaaqahmedsaqi 3 жыл бұрын
I watch it twice to get full grasp! Highly recommended as explaination is crystal clear.
@pawanmanjani1298
@pawanmanjani1298 3 жыл бұрын
Trust me... Your Awesome... Clear and easy explanation... Keep posting please
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Pawan, glad that you liked the content 🙂
@612SUNIL
@612SUNIL 3 жыл бұрын
Thank you Pallav for making this video. Your videos help me a lot to understand the concepts. Keep sharing your valuable knowledge with us.
@sarikapaghdal6150
@sarikapaghdal6150 2 жыл бұрын
your videos are very detailed explained and don't create confusion as you are not going here and there in Xcode!
@deeprajchowrasia6090
@deeprajchowrasia6090 9 ай бұрын
Well explained, you should also add the reference of the medium article , it really help me to get more clarity.
@rehanismail7082
@rehanismail7082 3 жыл бұрын
technically strong 💪 explanation. I always enjoy your tutorials.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks 🙂
@ShuklaAmbuj
@ShuklaAmbuj 2 жыл бұрын
Well explained Pallav, just Message Dispatch is not clear compared to other which are really explained very well, thanks for the awesome videos.
@avantiparanjape9317
@avantiparanjape9317 3 жыл бұрын
Great video! A quick snapshot to a topic which can be ignored easily.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the kind words Avanti 🙂
@vladlk2520
@vladlk2520 3 жыл бұрын
Great explanation and illustrations, thanks!
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Vladislav 🙂
@DhavalHNena
@DhavalHNena 2 жыл бұрын
Thanks Pallav for this great content! it really helps understanding such uncommon concepts which is not directly related to day to day programming. Thanks a lot!
@saurabhsierra9195
@saurabhsierra9195 3 жыл бұрын
Great...nice ... thanks for this...keep posting knowledgeable articles like this...good work.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for the kind words 🙂
@sanjeevreddy1756
@sanjeevreddy1756 3 жыл бұрын
Thanks for this topic and explaination too
@puneetpal1466
@puneetpal1466 3 жыл бұрын
Again many many thanks for such content and beautiful explanation 👏
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks for your constant support Puneet 🙂
@harinderrana7829
@harinderrana7829 3 жыл бұрын
Very well explained and different content from other channels 👍
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Harinder. I’m glad that you liked it 🙂
@gamingwithsaanvi4779
@gamingwithsaanvi4779 3 жыл бұрын
Very well explained...keep sharing your knowledge, thanks
@arunmalik4737
@arunmalik4737 3 жыл бұрын
Good Explanation...Have one question? Why swift using static dispatch in Extension irrespective of value type and refrence type data type?
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Hi Arun, thanks for watching the video and following it this closely. The one word answer to your question would be 'Optimisation' or 'Performance Enhancement'. I understand that this is not satisfying, and I can't explain the complete concept here in the comment (may be I'll make a separate video for it). But for now, you can have a look at this article 👇🏼 medium.com/@PavloShadov/https-medium-com-pavloshadov-swift-protocols-magic-of-dynamic-static-methods-dispatches-dfe0e0c85509 Hope it helps.
@romanromanenko9520
@romanromanenko9520 9 ай бұрын
Cool! Thank you for the explanation
@HumbleHustle101
@HumbleHustle101 2 жыл бұрын
Nice video Palav. Can you also make a video about pair coding test and how to prepare for it?
@ronnie-codes
@ronnie-codes 2 жыл бұрын
I always wondered why Xcode doesn't default to final when generating a class for you. I always mark a class as final until it is subclassed as a best practice, but Xcode should really do it to help make a statement about best practices at the least.
@programming5523
@programming5523 2 жыл бұрын
the reason its better to use struct make everything as struct and if needed change to class I heard this from a stanford professor
@sangeethabijoor9904
@sangeethabijoor9904 3 жыл бұрын
Thank you for this video. Very good explanation
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Glad you liked it
@begumkrkgoz8123
@begumkrkgoz8123 3 жыл бұрын
Thank you for your efforts. That is very useful and understandable.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Glad that you liked it 🙂
@ZartabCheema
@ZartabCheema 3 жыл бұрын
Appreciated, really good topic in a very good way
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Zartab, I’m glad that you found the video useful 🙂
@salman4siddiqui
@salman4siddiqui 2 жыл бұрын
Do we need to mark ViewControllers final to make efficient ?
@afaaqahmedsaqi
@afaaqahmedsaqi 3 жыл бұрын
One quick question: So wherever I know that there will be no more subclassing, should I introduce the final keyword to change the dispatch type of methods to static to make execution more speedy? Is it good practice if I introduce the final keyword to every class which is no longer going to be superclass in future? Maybe two quick questions ;)
@arjun.shukla
@arjun.shukla 3 жыл бұрын
Yes, that is a good practise.
@afaaqahmedsaqi
@afaaqahmedsaqi 3 жыл бұрын
@@arjun.shukla thank you
@abhinavmandloi
@abhinavmandloi 3 жыл бұрын
Awesome explanation
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Abhinav, glad that you liked it 🙂
@jai6133
@jai6133 3 жыл бұрын
Is message disptach use the witness table to identify the function pointers ?
@kanerodricks9930
@kanerodricks9930 2 жыл бұрын
Hi @iCode, is virtual dispatch and dynamic dispatch same? Or is it direct dispatch == static dispatch? virtual dispatch == table dispatch and dynamic dispatch == message dispatch?
@programming5523
@programming5523 2 жыл бұрын
if we use @mutating is it a dynamic dispatch and is it table or message can anyone tell me?
@david-tracy
@david-tracy 3 жыл бұрын
great video
@arjun.shukla
@arjun.shukla 3 жыл бұрын
Great one!
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Arjun 🙂
@rushabhsingh2148
@rushabhsingh2148 3 жыл бұрын
In case of extension, where and how does extension method gets appended in witness table?
@BuferQ
@BuferQ 3 жыл бұрын
Extension's methods do not append to the witness table. Static dispatch is used for them
@fazlinnouzil3946
@fazlinnouzil3946 3 жыл бұрын
What is dynamic typing? I couldn’t answer this in the interview.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
I’m not sure that I got you right, but if you are referring to Dynamic Type, that’s a feature that lets your app’s font size increases or decreases dynamically (depending on user’s preferences). It is helpful for visually challenged people. This might be useful www.raywenderlich.com/books/auto-layout-by-tutorials/v1.0/chapters/11-dynamic-type
@fazlinnouzil3946
@fazlinnouzil3946 3 жыл бұрын
I think the interviewer asked dynamic typing in objective c runtime. It was the question on objective c.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Ok, related to objc runtime. So a variable is dynamically typed when the type of the object it points to is not checked at compile time. Objective-C uses the id data type to represent a variable that is an object without specifying what sort of object it is. This is generally referred as dynamic typing. I'll try to discuss this in detail in one of the video (whichever will be relevant).
@fazlinnouzil3946
@fazlinnouzil3946 3 жыл бұрын
@@iCode_Happy_Coding sure, thank you. Objective-c runtime related questions are most welcome. Such questions or contents can hardly find.
@hardipgajera2316
@hardipgajera2316 3 жыл бұрын
Hello, Pallav am Hardip iOS dev I have a few queries, please answer me
 I am an ios dev with around 1.5 years of experience I know all basic things like JSON parsing and database handling which are required for all companies in my town

 But I know there is some advanced topic many of them you have created videos like SSL pinning, dependency injection and many more. I don’t know even the name of them thanks for your channel and you. I request you to please tell me how can I know all the topics in advance ios development because I want to not bound myself with this very basic lifecycle of iOS development

Please suggest to me how can I learn those things and please suggest me best resource for that.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Hi Hardip, Can you DM me on LinkedIn? We can have a chat there.
@vivekgupta8827
@vivekgupta8827 3 жыл бұрын
Good points
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Thanks Vivek, glad that you liked it 🙂
@alihasanoglu5278
@alihasanoglu5278 3 жыл бұрын
Thanks 👍
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Welcome :)
@pogosanesyan9999
@pogosanesyan9999 3 жыл бұрын
How do I give you 10 likes?
@iCode_Happy_Coding
@iCode_Happy_Coding 3 жыл бұрын
Glad that you found the video useful 🙂
@The0l0L0
@The0l0L0 5 ай бұрын
your videos are really helpful thank you 🥲
Inheritance vs Interfaces (Protocols) In Swift
18:43
iCode
Рет қаралды 15 М.
Method Dispatch - Диспетчеризация методов в Swift
26:11
Элина про iOS
Рет қаралды 10 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
3 MISTAKES to avoid when using Async / Await in Swift 😌
4:41
Vincent Pradeilles
Рет қаралды 13 М.
Диспетчеризация в Swift.
34:56
Ildar Zalyalov
Рет қаралды 21 М.
Threads and Grand Central Dispatch in Swift
22:14
Stewart Lynch
Рет қаралды 22 М.
Swift - Class vs. Struct Explained
7:28
Sean Allen
Рет қаралды 36 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН