|
|
December 1 · Issue #1 · View online
Hey there! My name is Majid and every week I will share with you most interesting links around Swift and iOS Development world. Each issue will contain links about App Architecture, Unit Testing, UI/UX, Libraries, etc. So subscribe now and never miss an issue.
|
|
|
Introducing Protocol-Oriented Programming in Swift
If you add the ability to create machines that also require gas, birds that fly in the background, or anything else that may want to share game logic, there isn’t a good way to separate the functional components of vehicles into something reusable. This scenario is where protocols really shine.
|
Practical Protocol-Oriented-Programming
“How can I use protocol-oriented programming in my everyday coding?” Natasha tackles this question and focuses on the practical applications for POP including Views, View Controllers, and Networking. Follow along with this talk from App Builders CH to shift your mindset from object-oriented to protocol-oriented when working in Swift to make your code cleaner and more readable!
|
Reusable Behaviours in UIViewControllers
This post demonstrates an approach for writing reusable Swift code when working with UIViewControllers in an iOS app.
|
Swift: Why You Shouldn’t Use Default Implementations in Protocols
At first, that sounded great, but after thinking about it…
|
|
Using protocol compositon for dependency injection
As the project grows and you need to inject more dependencies into your objects, you will end up having to refactor your methods a lot of times, as we all know Xcode doesn’t help with that. There is a more manageable way.
|
Better MVVM setup with POP and Runtime
Pretty standard approach for MVVM architecture is to have both UIView and UIViewController have a corresponding ViewModel. An improvement would be to introduce a ViewModelProtocol that would contain a minimal interface that the View layer needs.
|
|
Protocol-Oriented Programming in Swift
At the heart of Swift’s design are two incredibly powerful ideas: protocol-oriented programming and first class value semantics. Each of these concepts benefit predictability, performance, and productivity, but together they can change the way we think about programming. Find out how you can apply these ideas to improve the code you write.
|
Protocol and Value Oriented Programming in UIKit Apps
Building on last year’s Protocol-Oriented Programming and Building Better Apps with Value Types sessions, this year’s session will highlight tips and tricks for building better Swift apps. See how you can incorporate these design approaches into a real MVC-based Cocoa Touch app, especially in the view and controller layers, where you might not have thought of using these techniques before.
|
Building Better Apps with Value Types in Swift
Swift supports rich first-class value types in the form of powerful structs, which provide new ways to architect your apps. Learn about the differences between reference and value types, how value types help you elegantly solve common problems around mutability and thread safety, and discover how Swift’s unique capabilities might change the way you think about abstraction.
|
|
Protocol Oriented Programming is Not a Silver Bullet
Why we should be critical of using protocols
|
Did you enjoy this issue?
|
|
|
|
If you don't want these updates anymore, please unsubscribe here.
If you were forwarded this newsletter and you like it, you can subscribe here.
|
|
|