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.
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?
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.
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 ;)
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.
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!
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
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).
Good Explanation...Have one question?
Why swift using static dispatch in Extension irrespective of value type and refrence type data type?
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.
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?
Thanks 👍
Welcome :)
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.
the reason its better to use struct make everything as struct and if needed change to class I heard this from a stanford professor
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 ;)
Yes, that is a good practise.
@@arjun.shukla thank you
if we use @mutating is it a dynamic dispatch and is it table or message can anyone tell me?
Trust me... Your Awesome... Clear and easy explanation... Keep posting please
Thanks Pawan, glad that you liked the content 🙂
Had this topic on my technical interview, couldn't find a better explanation than your video. Thank yo so much!
Great explanation and illustrations, thanks!
Thanks Vladislav 🙂
your videos are really helpful thank you 🥲
I watch it twice to get full grasp!
Highly recommended as explaination is crystal clear.
Thanks for this topic and explaination too
technically strong 💪 explanation. I always enjoy your tutorials.
Thanks 🙂
Well explained, you should also add the reference of the medium article , it really help me to get more clarity.
Is message disptach use the witness table to identify the function pointers ?
Do we need to mark ViewControllers final to make efficient ?
Well explained Pallav, just Message Dispatch is not clear compared to other which are really explained very well, thanks for the awesome videos.
Cool! Thank you for the explanation
Nice video Palav. Can you also make a video about pair coding test and how to prepare for it?
Thank you Pallav for making this video. Your videos help me a lot to understand the concepts. Keep sharing your valuable knowledge with us.
Very well explained...keep sharing your knowledge, thanks
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.
Hi Hardip,
Can you DM me on LinkedIn? We can have a chat there.
your videos are very detailed explained and don't create confusion as you are not going here and there in Xcode!
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!
Great...nice ... thanks for this...keep posting knowledgeable articles like this...good work.
Thanks for the kind words 🙂
Again many many thanks for such content and beautiful explanation 👏
Thanks for your constant support Puneet 🙂
Thank you for this video. Very good explanation
Glad you liked it
Great video! A quick snapshot to a topic which can be ignored easily.
Thanks for the kind words Avanti 🙂
Thank you for your efforts. That is very useful and understandable.
Glad that you liked it 🙂
Very well explained and different content from other channels 👍
Thanks Harinder. I’m glad that you liked it 🙂
In case of extension, where and how does extension method gets appended in witness table?
Extension's methods do not append to the witness table. Static dispatch is used for them
great video
Appreciated, really good topic in a very good way
Thanks Zartab, I’m glad that you found the video useful 🙂
How do I give you 10 likes?
Glad that you found the video useful 🙂
What is dynamic typing? I couldn’t answer this in the interview.
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
I think the interviewer asked dynamic typing in objective c runtime. It was the question on objective c.
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).
@@iCode_Happy_Coding sure, thank you. Objective-c runtime related questions are most welcome. Such questions or contents can hardly find.
Awesome explanation
Thanks Abhinav, glad that you liked it 🙂
Great one!
Thanks Arjun 🙂
Good points
Thanks Vivek, glad that you liked it 🙂