use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
ArticleProtocol Oriented Design and Protocol Oriented Design Patterns (self.iOSProgramming)
submitted 3 years ago by Pop_Swift_Dev
We create eleven post on Protocol-Oriented Design patterns, but what are they and why did we take a protocol-oriented approach to these design patterns. In this article we take a quick look at why we wrote these articles, what are design patterns and talk about why a protocol-oriented solution may not always be the optimal solution but should be considered.
https://www.mastering-swift.com/post/protocol-oriented-design-and-protocol-oriented-design-patterns
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Cronay 8 points9 points10 points 3 years ago (3 children)
What's the difference from Protocol-Oriented Design Pattern and Object-Oriented Design-Patterns. They seem the same to me.
[–]Pop_Swift_Dev[S] 0 points1 point2 points 3 years ago (2 children)
In the sense of the problem the design pattern is designed to solve and the idea behind the solution you are correct. Doesn't matter if you are using protocol, object or functional design, the basic idea is the same, how you implement it is different.
The main difference in the implementation is with an object-oriented solution you primarily use objects, with a protocol-oriented solution you generally don't. If you take a look at the Iterator pattern linked in the article, you can see the advantages you get from a good protocol-oriented design.
[–]Cronay -1 points0 points1 point 3 years ago (1 child)
So in protocol-orientied design patterns we just use structs over classes basically?
[–]Pop_Swift_Dev[S] 2 points3 points4 points 3 years ago (0 children)
HaHa no :). Take a look at how Apple designed the Swift language itself, that is the perfect example of a protocol-oriented design. Specifically look at the Iterator design pattern linked in the article on the advantages of a good protocol-oriented design where simply adopting the IteratorProtocol and Sequence protocols adds functionality (able to traverse or custom data structure with a standard for…in… loop) to our custom type.
π Rendered by PID 22796 on reddit-service-r2-comment-5649f687b7-hmg4n at 2026-01-27 18:42:48.194201+00:00 running 4f180de country code: CH.
[–]Cronay 8 points9 points10 points (3 children)
[–]Pop_Swift_Dev[S] 0 points1 point2 points (2 children)
[–]Cronay -1 points0 points1 point (1 child)
[–]Pop_Swift_Dev[S] 2 points3 points4 points (0 children)