Protocol-Oriented Programming in Swift 5 Protocol-Oriented Programming in Swift 5
Swift Clinic

Protocol-Oriented Programming in Swift 5

Familiarize yourself with POP to fully unleash the power of Swift 5 and protocols

    • 4,0 • 1 Bewertung
    • 11,99 €
    • 11,99 €

Beschreibung des Verlags

Protocol-Oriented Programming is a powerful approach that makes it easier to write efficient, elegant, and professional Swift code. Anyone who plans to design, implement, or understand a modern Swift codebase needs to understand this programming paradigm.

I’ll make the transition from Object-Oriented Programming to Protocol-Oriented Programming as smooth as possible—regardless of whether you’ve been working with object-oriented languages for decades or you’re just about to write your first, extensive project in Swift. 

We’ll begin with an in-depth discussion of what Protocol-Oriented Programming is and what makes it different from the object-oriented programming approach. 

We’ll then talk about three fundamental concepts: 
• Protocol extensions
• Protocol inheritance
• Protocol composition

Understanding these concepts is crucial to applying the Protocol-Oriented Programming (POP) paradigm effectively.

To solidify them, I’m going to lead you through several Swift coding examples.

Although this book focuses on POP, we’ll usually encounter generics when using protocols. I dedicated an entire chapter to show you how to leverage the power of generics combined with protocols. 

Finally, you can follow along with me as I build a full-blown application from scratch using the protocol-oriented approach.

Throughout the book, you'll acquire coding skills that can be applied in real-world situations. And by the time you finish, you’ll have the knowledge to design and write professional applications that leverage the power of protocol-oriented programming.

GENRE
Computer und Internet
ERSCHIENEN
2021
27. Februar
SPRACHE
EN
Englisch
UMFANG
159
Seiten
VERLAG
Karoly Nyisztor
ANBIETERINFO
Karoly Nyisztor
GRÖSSE
1,1
 MB

Kundenrezensionen

FGHelf ,

Hat mir sehr gut gefallen, aber…

Das Buch ist eine gut lesbare Darstellung des „Warum“ und „Wie“ von Protokollen in Swift. Auch andere, zum Verständnis der Beispiele notwendige Ansätze (z. B. MVVM) in der (Swift UI)-Programmierung werden kurz dargestellt. Die Playground-Übungen sind gut nachvollziehbar und erläutert.
Es geht also um einen der grundlegenden Ansätze der Swift-Programmierung, der speziell in Swift UI ein tragender Baustein ist und der leider trotzdem (zumindest für mich) in anderen Lehrbüchern zwar theoretisch behandelt, als praktisches Tool aber immer eine universale, quergestrebte Reduziermuffe geblieben ist: Ist überall drin, das Ganze funktioniert auch klasse, aber wozu??
MEIN LESEERGEBNIS: Nach dem Durcharbeiten der Kapitel 1-5, die einem die Prinzipien des Umgangs mit Protokollen theoretisch und praktisch nahebringen, hat sich meine Sicht und mein Herangehen an die App-Programmierung definitiv geändert und ist klarer geworden.
Ich werde in Zukunft in meinen Programmen konsequenter Protokolle einsetzen und den Programmaufbau auch daran ausrichten!
Leider hatte ich dann beim Nachvollziehen der Programmierung der abschließenden Reale Welt-App in Kapitel 6 das Gefühl, dass andere Dinge in diesem Beispiel viel wichtiger sind (MVVM-Architektur, asynchrones Datenfetching und -verarbeitung mittels URLs und JSON, Fehlerbehandlung …) und man besser darüber ein Buch gelesen hätte.
Deshalb fehlt der fünfte Stern.
PS: Ich habe mir auf jeden Fall auch das Buch über Design Patterns gekauft!

Protocol-Oriented Programming with Swift Protocol-Oriented Programming with Swift
2016
Mastering Swift 4 - Fourth Edition Mastering Swift 4 - Fourth Edition
2017
Mastering Swift 5 Mastering Swift 5
2019
C# 6.0 and the .NET 4.6 Framework C# 6.0 and the .NET 4.6 Framework
2015
Professional C# 4.0 and .NET 4 Professional C# 4.0 and .NET 4
2010
Programming C# 4.0 Programming C# 4.0
2010
Design Patterns in Swift 5 Design Patterns in Swift 5
2019
Machine Learning with Core ML 2 and Swift Machine Learning with Core ML 2 and Swift
2019
Introduction to Algorithms and Data Structures in Swift 4 Introduction to Algorithms and Data Structures in Swift 4
2018
UML and Object-Oriented Design Foundations UML and Object-Oriented Design Foundations
2018
Tcl Programming Foundations Tcl Programming Foundations
2024
Secure C and C++ Coding Secure C and C++ Coding
2024
Swift Protocol-Oriented Programming Swift Protocol-Oriented Programming
2019
Swift in Depth Swift in Depth
2018
A Combine Kickstart A Combine Kickstart
2021
UIKit for Masterminds UIKit for Masterminds
2021
SwiftUI Cookbook SwiftUI Cookbook
2021
SwiftUI Projects SwiftUI Projects
2020
Design Patterns in Swift 5 Design Patterns in Swift 5
2019
Machine Learning with Core ML 2 and Swift Machine Learning with Core ML 2 and Swift
2019
Introduction to Algorithms and Data Structures in Swift 4 Introduction to Algorithms and Data Structures in Swift 4
2018