Why Protocol Oriented Programming swift tutorial | swift protocols

preview_player
Показать описание
What is protocols in swift or why to use protocols in swift is a general interview question that’s asked to beginners in swift and even experienced programmers, in this video I take a deep dive at why do we need swift protocols and show how protocol oriented programming can improve your swift code and make your swift code much manageable.

Protocols help your class and structure to adhere to a certain set of disciplines and make sure that your class and structure follow those sets of disciplines, in big projects protocols help you to write less tangible code with loose coupling and using protocols you can even write excellent test cases for your code.

Watch this video till the end to know more about protocol oriented programming in swift and iOS and learn how a simple step in the right direction can make your swift code more robust and manageable.

If you are a swift beginner then watch my playlist for beginner to learn the basics of swift

If you are an experienced developer then watch my playlist of writing clean code and protocol oriented programming

Please subscribe to the channel if this video has helped you in learning the concepts of protocol oriented programming and answering the question that why you need protocols in swift

Рекомендации по теме
Комментарии
Автор

We all have heard about protocols in swift, you might have done one or two samples using protocols in swift. But this video talks about why you need protocols in your code and how protocols can make your life easy by imposing a disciple in your code. Do check out the video till the end to get a better grip on protocols and take your programming skills to the next level. Happy iCoding

CodeCat
Автор

The beauty of your teaching is you are having the skill which every student is searching…. Simplifying difficult concepts in easiest way.

Anand-fxcz
Автор

Very well explanation... And Hindi me to apna pan feel hota hai samjne me. Thanks a lot.

RahulSharma-ruyp
Автор

simple and well explained.
I think protocols are somewhat similar to interfaces in C++

abdulwahabqureshi
Автор

Nice lecture delivery.
I am expecting some more videos on extensive use of protocol in Swift projects

SuperAkashat
Автор

Actually second part is Interface Segregation Principle which says you should prefer many client interfaces rather than one general interface and each interface should have a specific responsibility. Thanks. Please make video clean like this.

direwolf
Автор

This example is perfect example of solid principles interface segregation. Can you please make a video on solid principle? Each principle with example

kalomanik-theghontusingh
Автор

I understood when you said: "Protocol Bohot Bulky Ho Jaega"

But how to handle: "Class Bohot Bulky Ho Gaya sare Protocols inherit karke" ?

Is it good practice to add Default Definitions to Protocol Methods using Extensions, to implement Multiple Inheritance?

chinmayatrawalkar
Автор

did you already uploaded videos for TDD

UmairKhan-tqhq
Автор

Could you please clarify my doubts. protocol are best to follow disciple. suppose we have multiple classes & this classes implemented protocol methods right? Is it increase code duplication (If implement of method have same functionality). In the inheritance we can reuse already implemented methods in the child classes. 

You can teach awesome, thanks a lot

suhaspathak
Автор

i am bit confused in class and protocols .what is difference between in protocols and class.

learningzone
Автор

hey Ravi, do you have any apps on app store??

pratikgupta
Автор

Just for fun wanna ask are you a big audi fan 😜 most of the examples have Audi

kushal
Автор

So basically it is the same as Abstract Class in C++ which only provides a blueprint and no objects of it can be created.

codinger
join shbcf.ru