Thank you Ashok, I hope this information was helpful and basically this also answers the famous interview questions when to use class instead of structure and why
Well you should watch out for the community tab as some code puzzle will be posted there and ofcourse i will explain the answer in the video 😊 let me know if this video was helpful to you or you have any questions on this topic
Hello Ammy welcome to the channel, am glad the video was helpful. Please do feel free to ask questions on this topic and do share this video with your iOS group on WhatsApp or Facebook
@@CodeCat15 yes sir , of course it is very useful for me , it is very important topic for everyone who have fresher or mid level senior. Sir, can you make a demo chat with firebase real time database. I just want to know about it bcz I am working only with apis in php or node.
you can't because of two bodyguards 1. Swift compiler 2. Swift runtime The swift compiler is more friendly it will just give a compile time error but the swift runtime will cause a crash, I guess in situations like these we need to see why recursion is happening and write code accordingly so that we can avoid it that's the best we can do. However if you know a use case do send me an email about it and I will try to make a video of it
@@CodeCat15 if we make a weak var one of them, then Recursion will not happen it seems. Because ARC will take care of it. And release memory for the objects.
@@akashrevanna5327 brilliant explanation that's how you should avoid retain cycles, I did show this in my ARC video where using weak we can break the chain and then ARC will take care of the memory. Good job Akash 👍
The solution is to avoid adding code like this, and to stop initializing one class inside other if they are referencing each other. Mostly this is a case which does not happen but its always good to know what can cause problems with your code and why
Thank you sir. please making more videos .Your demonstration is awesome.
Thank you Ashok, I hope this information was helpful and basically this also answers the famous interview questions when to use class instead of structure and why
This is really very very helpful.Thank you.... too desperate for next video😊
Well you should watch out for the community tab as some code puzzle will be posted there and ofcourse i will explain the answer in the video 😊 let me know if this video was helpful to you or you have any questions on this topic
Thank you sir for that neat and clean explanation. Found it really helpful 😊
Hello Ammy welcome to the channel, am glad the video was helpful. Please do feel free to ask questions on this topic and do share this video with your iOS group on WhatsApp or Facebook
Instructive tutorial, I like it vary much
Am glad you liked it, plz feel free to ask questions on this topic and do share this topic with your iOS group
Sir, Thank you for sharing the advance level info.
Thanks Mandeep, am glad this information was resourceful to you
@@CodeCat15 yes sir , of course it is very useful for me , it is very important topic for everyone who have fresher or mid level senior.
Sir, can you make a demo chat with firebase real time database. I just want to know about it bcz I am working only with apis in php or node.
Let's do this, you proceed with what you think is fine, and if you get stuck I am just an email away :)
Great !!
Glad this was helpful. Please share the video with your ios group and feel free to ask questionregarding the same
@@CodeCat15 sure ravi
suppose we need such situations any how then what should we do?
you can't because of two bodyguards
1. Swift compiler
2. Swift runtime
The swift compiler is more friendly it will just give a compile time error but the swift runtime will cause a crash, I guess in situations like these we need to see why recursion is happening and write code accordingly so that we can avoid it that's the best we can do. However if you know a use case do send me an email about it and I will try to make a video of it
Code Cat sure sir i will provide you a use case too soon and thanks for making such precious videos.
No problem Sanjay 😊 always happy to share such content and answer the questions
Can't we declare it weak var ?(To avoid retain cycle)
What do you think will happen when we declare weak in this case?
@@CodeCat15 if we make a weak var one of them, then Recursion will not happen it seems. Because ARC will take care of it. And release memory for the objects.
@@akashrevanna5327 brilliant explanation that's how you should avoid retain cycles, I did show this in my ARC video where using weak we can break the chain and then ARC will take care of the memory. Good job Akash 👍
@@b228d0 it’s creating infinite objects of each other recursively which is shown in the video, do watch the video and the code in it
so whats the solution?
The solution is to avoid adding code like this, and to stop initializing one class inside other if they are referencing each other. Mostly this is a case which does not happen but its always good to know what can cause problems with your code and why