016 iOS Development 10 Rules
Manage episode 311359791 series 3112670
محتوای ارائه شده توسط Gourav Nayyar. تمام محتوای پادکست شامل قسمتها، گرافیکها و توضیحات پادکست مستقیماً توسط Gourav Nayyar یا شریک پلتفرم پادکست آنها آپلود و ارائه میشوند. اگر فکر میکنید شخصی بدون اجازه شما از اثر دارای حق نسخهبرداری شما استفاده میکند، میتوانید روندی که در اینجا شرح داده شده است را دنبال کنید.https://fa.player.fm/legal
In today's session we would be coving the ground rules for iOS developers while writing the swift code. We will discuss from adding comments to your code to writing extensions and protocols. Use of Guard Statement Documenting you code Type Inference Final keyword for the classes Why you should have `struct` as default Always start with immutable variable when you're not sure about the mutability of it Use self wisely or avoid using it where-ever you can Avoid Free functions Avoid Force unwrap and implicitly unwrapped Optional Use HIGH Order function but don't force them **BONUS**: Use trailing Closure syntax Reach out me: twitter: @gouravnayyar youtube: https://www.youtube.com/gouravnayyar --- Send in a voice message: https://podcasters.spotify.com/pod/show/gouravnayyar/message
…
continue reading
23 قسمت