63: Only Ever Accept Salmon episode artwork

EPISODE · Aug 9, 2015 · 39 MIN

63: Only Ever Accept Salmon

from Mobile Couch · host Mobile Couch

Jelly and Ben start the show by covering some quick follow-up about CocoaPods and Carthage, which blurs the lines between their differences. This leads into a quick discussion about how CocoaPods is now being supported by a bunch of companies with libraries, such as Google, Twitter and Hockey. Ben then puts forward the problem of “blockception”, the effect that blocks within blocks have of excessively indenting your code, making it more difficult to read and harder to maintain. There are some native ways of dealing with the issue, but they’re still not ideal, so he has taken a look at some ways of solving the issue. The first of these is PromiseKit, a third-party library that wraps asynchronous calls in Cocoa with versions that use promises. This allows you to keep all your blocks at the same level of scope, which has the additional benefit of ensuring that each block only captures the variables that they actually need, making memory management a little easier. Another is ReactiveCocoa, a well-known implementation of reactive programming for Cocoa. This follows a very similar approach to PromiseKit (except with “streams” instead of “promises”), but is a much larger implementation, as it covers more than just the idea of multiple asynchronous calls. Finally, there’s Rx, which is a C# library from Microsoft, but it’s also been brought to Java, Swift and Android. It’s a lighter weight implementation of reactive programming, and also has the benefit of being cross-platform, which means you can keep your approach conceptually similar between the different platforms you support.

Episode metadata supplied by the publisher feed · Published Aug 9, 2015

Jelly and Ben start the show by covering some quick follow-up about CocoaPods and Carthage, which blurs the lines between their differences. This leads into a quick discussion about how CocoaPods is now being supported by a bunch of companies with libraries, such as Google, Twitter and Hockey. Ben then puts forward the problem of “blockception”, the effect that blocks within blocks have of excessively indenting your code, making it more difficult to read and harder to maintain. There are some native ways of dealing with the issue, but they’re still not ideal, so he has taken a look at some ways of solving the issue. The first of these is PromiseKit, a third-party library that wraps asynchronous calls in Cocoa with versions that use promises. This allows you to keep all your blocks at the same level of scope, which has the additional benefit of ensuring that each block only captures the variables that they actually need, making memory management a little easier. Another is ReactiveCocoa, a well-known implementation of reactive programming for Cocoa. This follows a very similar approach to PromiseKit (except with “streams” instead of “promises”), but is a much larger implementation, as it covers more than just the idea of multiple asynchronous calls. Finally, there’s Rx, which is a C# library from Microsoft, but it’s also been brought to Java, Swift and Android. It’s a lighter weight implementation of reactive programming, and also has the benefit of being cross-platform, which means you can keep your approach conceptually similar between the different platforms you support.

PodParley-generated summary based on available episode metadata and transcript content.

NOW PLAYING

63: Only Ever Accept Salmon

0:00 39:56

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Mobile Money by moomoo Mobile Money by moomoo Hear from seasoned traders, financial influencers, and industry insiders as they discuss money matters and market news and share their personal finance stories.Disclaimers: https://www.moomoo.com/us/support/topic4_523 MySwimPro Swimming Technique & Training Podcast MySwimPro MySwimPro is the number one fitness application for the fastest growing sport in the world. Since 2014, we have been on a mission to help swimmers of all levels live happier and healthier lives through swimming. Today, swimmers in more than 150 countries use MySwimPro’s award-winning mobile and wearable apps to access personalized swim workout plans, training plans, educational drills and videos, advanced analytics, and to log and track their progress. MySwimPro is accessible on iOS and Android smartphones and wearables, and is free to get started. Mobile App Development TV (Video – 480p) MobileCast Media, Inc. Tune in regularly for the latest tips and best practices for successfully managing mobile app development projects. GetConnected Curiouscast How is technology changing our lives? Hosting interviews with innovators, execs, and more, Canada’s tech expert Mike Agerbo explores how everything from tech gadgets to internet culture are changing our world.For over 20 years, Mike Agerbo has made technology simple for audiences. He brings the latest gadgets to Global TV audiences with his weekly Noon Hour News Tech Talk segment and hosts the popular tech TV and YouTube show GetConnected. He also hosts The App Show, a radio show all about mobile technology. 

Frequently Asked Questions

How long is this episode of Mobile Couch?

This episode is 39 minutes long.

When was this Mobile Couch episode published?

This episode was published on August 9, 2015.

What is this episode about?

Jelly and Ben start the show by covering some quick follow-up about CocoaPods and Carthage, which blurs the lines between their differences. This leads into a quick discussion about how CocoaPods is now being supported by a bunch of companies with...

Can I download this Mobile Couch episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!