Swift Patterns: Builders

  Рет қаралды 1,139

Cocoacasts

Cocoacasts

Күн бұрын

The builder pattern isn't a common pattern in Swift and Cocoa development and you don't find it in any of Apple's frameworks. It is one of the Gang of Four design patterns and widely used in Java development.
As the name suggests, the builder pattern is aimed at object creation and configuration. The idea is simple. You pass the requirements of the object you want to create to a builder. The builder uses those requirements to create and configure the object. You could see the builder as a factory that is capable of creating a range of variations or representations of one or more types.

Пікірлер: 4
@oleg991
@oleg991 2 жыл бұрын
Thanks for the video! By the way I’d suggest removing your check in line 69 because parameters cannot be empty according to your code (f_png and dpr are always added).
@SleepyChoco
@SleepyChoco 2 жыл бұрын
Nice 👍
@ManishSingh-iy7ui
@ManishSingh-iy7ui 2 жыл бұрын
can you please share the code that you shown in the example?
@Cocoacasts
@Cocoacasts 2 жыл бұрын
Sure. You can find it on the Cocoacasts website (cocoacasts.com/swift-patterns-builders).
Understanding SwiftUI ViewBuilders
21:57
Stewart Lynch
Рет қаралды 9 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 27 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Builder Pattern - Design Patterns
10:49
Web Dev Simplified
Рет қаралды 137 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 294 М.
Swift Design Patterns (Adapter)
14:11
Venu Gopal Tewari
Рет қаралды 2,1 М.
Builder Design Pattern Explained in 10 Minutes
10:45
Kantan Coding
Рет қаралды 31 М.
Swift and Cocoa Essentials: Increasing Performance Through Caching
16:13
What is decorator pattern in iOS? || Learn by Coding
14:09
App Developer
Рет қаралды 2,1 М.
Factory Design Pattern in Swift & iOS (2023)
10:48
iOS Academy
Рет қаралды 9 М.
SOLID Principles in Swift
33:37
Prolific Interactive
Рет қаралды 23 М.
Builder Design Pattern in Swift 5
19:40
Inside iOS Dev
Рет қаралды 1,9 М.
Design Patterns for iOS Swift in only 36 minute
36:12
Harsivo Edu
Рет қаралды 14 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 27 МЛН