Design Patterns in Swift 5: Learn how to implement the Gang of Four Design Patterns using Swift 5. Improve your coding skills.
暫譯: Swift 5 設計模式:學習如何使用 Swift 5 實現四人幫設計模式,提升你的程式碼技能。
Nyisztor, Monika, Nyisztor, Karoly
- 出版商: Independently Published
- 出版日期: 2019-03-26
- 售價: $1,180
- 貴賓價: 9.5 折 $1,121
- 語言: 英文
- 頁數: 350
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1091686513
- ISBN-13: 9781091686519
-
相關分類:
Apple Developer、Design Pattern
立即出貨 (庫存=1)
買這商品的人也買了...
-
$1,010$960 -
$709Android 系統服務開發
-
$1,650$1,568 -
$1,400Program the Internet of Things with Swift for iOS: Learn How to Program Apps for the Internet of Things
-
$680$530 -
$890$694
相關主題
商品描述
Software developers need to solve various problems. Many times, these problems are the same or similar to the ones they've already encountered in other projects.
That's precisely the reason why software design patterns exist. A design pattern is a standardized way to address a recurring problem. Relying on a proven strategy will not only save you time, but you can rest assured that it's indeed the right choice.
Design patterns are the result of a long evolution process. It all started with a book published in 1994 - yes, it's that old - called "Design Patterns - Elements of Reusable Object-Oriented Software." That's a quite tedious title, so we usually refer to it as "the book by the gang of four." The gang consists of four renowned software engineers: Erich Gamma, Ralph Johnson, Richard Helm, and John Vlissides. They identified the most significant common issues that occurred in multiple projects and developed best practices to solve them.
The best part: these solutions are (programming) language-agnostic. You can use the design patterns with any object-oriented programming language.
Many modern programming languages and frameworks have integrated the GoF patterns. You don't have to write additional code to support say the Iterator or the Observer.
Swift is no exception: it provides many advanced language features and constructs such as type extensions, lazy initialization, and predefined protocols that let us adopt and integrate the design patterns into our projects easily.
We'll talk about the benefits of understanding and applying the design patterns, the value they provide, and also about their limitations.
Then, we delve into the creational design patterns:
- the Singleton,
- the Prototype,
- the Factory Method,
- the Builder,
- and the Abstract Factory design pattern
We're going to take a closer look at the structural design patterns. We discuss:
- the Adapter,
- the Decorator,
- the Fa ade,
- the Flyweight,
- and the Proxy pattern
In the final part of this book, we discuss the behavioral design patterns:
- the Chain of Responsibility,
- the Iterator,
- the Observer,
- and we finish with the State design pattern
For each design pattern, we discuss the following:
- When to use the specific design pattern?
- How can it be implemented using Swift 5?
- What are the challenges and pitfalls of using the given pattern?
Throughout the book, I provide coding examples that can be applied in real-world situations.
K roly Nyisztor is a veteran software engineer and instructor.
He has worked with large companies such as Apple, Siemens, and SAP. K roly has designed and built several enterprise frameworks, and he holds twelve patents related to inventions in the field of mobile computing.
After 18 years, he left the corporate world to start his own business.
Since 2016, he's fully committed to teaching. As an instructor, he aims to share his 20+ years of software development expertise. K roly teaches:
- Software Architecture,
- Object-Oriented Programming and Design
- Swift and iOS Programming,
- and other, programming-related topics
You can find K roly Nyisztor's courses and books on all major platforms including Amazon, Lynda, LinkedIn Learning, Pluralsight, Udemy, and iTunes.
商品描述(中文翻譯)
軟體開發人員需要解決各種問題。許多時候,這些問題與他們在其他專案中遇到的問題相同或相似。
難道不會很棒嗎?能夠應用你已經找到的解決方案,而不是一次又一次地重新發明輪子?
這正是軟體設計模式存在的原因。設計模式是一種標準化的方法,用於解決重複出現的問題。依賴於經過驗證的策略不僅能節省時間,還能讓你放心,這確實是正確的選擇。
設計模式是經過長時間演變的結果。這一切始於1994年出版的一本書——是的,它已經那麼老了——名為《Design Patterns - Elements of Reusable Object-Oriented Software》。這個標題相當冗長,因此我們通常稱之為「四人幫的書」。這四位著名的軟體工程師分別是:Erich Gamma、Ralph Johnson、Richard Helm 和 John Vlissides。他們識別出在多個專案中出現的最重要的共同問題,並開發出最佳實踐來解決這些問題。
最棒的是:這些解決方案是與程式語言無關的。你可以在任何物件導向程式語言中使用這些設計模式。
許多現代程式語言和框架已經整合了GoF模式。你不必編寫額外的程式碼來支持例如Iterator或Observer。
Swift也不例外:它提供了許多先進的語言特性和結構,例如型別擴展、延遲初始化和預定義協定,讓我們能夠輕鬆地將設計模式採用並整合到我們的專案中。
本書涵蓋了所有這些主題,並教授你可以在即將到來的專案中應用的最佳實踐。
我們將討論理解和應用設計模式的好處、它們所提供的價值,以及它們的局限性。
接著,我們深入探討創建型設計模式:
- 單例模式 (Singleton),
- 原型模式 (Prototype),
- 工廠方法模式 (Factory Method),
- 建造者模式 (Builder),
- 抽象工廠模式 (Abstract Factory)
我們將更仔細地看看結構型設計模式。我們將討論:
- 適配器模式 (Adapter),
- 裝飾者模式 (Decorator),
- 外觀模式 (Facade),
- 享元模式 (Flyweight),
- 代理模式 (Proxy)
在本書的最後部分,我們將討論行為型設計模式:
- 責任鏈模式 (Chain of Responsibility),
- 迭代器模式 (Iterator),
- 觀察者模式 (Observer),
- 最後是狀態模式 (State)
對於每個設計模式,我們將討論以下內容:
- 何時使用特定的設計模式?
- 如何使用Swift 5實現它?
- 使用該模式的挑戰和陷阱是什麼?
在整本書中,我提供可以應用於現實世界情況的程式碼範例。
K roly Nyisztor是一位資深的軟體工程師和講師。
他曾與Apple、Siemens和SAP等大型公司合作。K roly設計並構建了幾個企業框架,並擁有十二項與移動計算領域相關的專利。
在18年後,他離開了企業界,開始創業。
自2016年以來,他全心投入教學。作為講師,他旨在分享他超過20年的軟體開發專業知識。K roly教授:
- 軟體架構,
- 物件導向程式設計與設計,
- Swift和iOS程式設計,
- 以及其他與程式設計相關的主題
你可以在所有主要平台上找到K roly Nyisztor的課程和書籍,包括Amazon、Lynda、LinkedIn Learning、Pluralsight、Udemy和iTunes。