Jump to ratings and reviews
Rate this book

Swift 4 Protocol-Oriented Programming: Bring predictability, performance, and productivity to your Swift applications

Rate this book
Build fast and powerful applications by harnessing the power of protocol-oriented programming in Swift 4

Key FeaturesLeverage the power of protocol-oriented programming in your applications and learn from real-world use casesCreate a flexible code base with protocols and protocol extensionsLeverage the power of generics in Swift 4 to create very flexible frameworksBook DescriptionSwift has become the number one language used in iOS and macOS development. The Swift standard library is developed using protocol-oriented programming techniques, generics, and first-class value semantics; therefore, every Swift developer should understand these powerful concepts and how to take advantage of them in their application design.

This book will help you understand the differences between object-oriented programming and protocol-oriented programming. It will demonstrate how to work with protocol-oriented programming using real-world use cases. You will gain a solid knowledge of the various types that can be used in Swift and the differences between value and reference types. You will be taught how protocol-oriented programming techniques can be used to develop very flexible and easy-to-maintain code.

By the end of the book, you will have a thorough understanding of protocol-oriented programming and how to utilize it to build powerful and practical applications.

What you will learnUnderstand the differences between object-oriented programming and protocol-oriented programmingExplore the different types that Swift offers and what pitfalls to avoidDelve into generics and generic programmingLearn how to implement Copy-On-Write within your custom typesImplement several design patterns in a protocol-oriented wayDesign applications by prioritizing the protocol first and the implementation types secondTable of ContentsStarting with the ProtocolOur type choicesExtensionsGenericsObject-Oriented ProgrammingProtocol-Oriented ProgrammingAdopting Design Patterns in SwiftCase Studies

212 pages, Kindle Edition

Published October 6, 2017

6 people are currently reading
11 people want to read

About the author

Jon Hoffman

29 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
2 (16%)
4 stars
6 (50%)
3 stars
4 (33%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
2 reviews
August 29, 2018
Excellent introduction to Protocol-Oriented programming in Swift.

I was looking for something that covered Protocol-Oriented programming, and I found this to cover most of what I was looking for.

This book can you help to understand differences between Protocol-Oriented programming and Object-Oriented programming. In particular Jon describes the design patterns and shows how you can implement them in your code.

The book covers everything you need to get going, and I would heartily recommend it.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.