Pro Design Patterns in Swift Год: 2015 Автор: Adam Freeman Издательство: Apress ISBN: 978-1-4842-0394-1 Язык: Английский Формат: PDF Качество: Изначально компьютерное (eBook) Интерактивное оглавление: Да Количество страниц: 568 Описание: The Swift programming language has transformed the world of iOS development and started a new age of modern Cocoa development. Pro Design Patterns in Swift shows you how to harness the power and flexibility of Swift to apply the most important and enduring design patterns to your applications, taking your development projects to master level. This book will teach you those design patterns that have always been present at some level in your code, but may not have been recognized, acknowledged, or fully utilized. Implementation of specific pattern approaches will prove their value to any Swift developer. Best-selling author Adam Freeman explains how to get the most from design patterns. He starts with the nuts-and-bolts and shows you everything through to advanced features, going in-depth to give you the knowledge you need. Pro Design Patterns in Swift brings design patterns to life and shows you how to bring structure and scale to your Swift code with a practical, no-nonsense approach. In this book, you’ll learn: - Gain a solid, practical understanding of why and when design patterns are useful - Master classic patterns like singleton, abstract factory, chain of responsibility, and observer - Discover less well-known patterns like memento, composite, command, and mediator - Understand how Swift provides essential language features for writing well-structured code that is easy to understand, simple to test and readily maintainable. - Learn how to consume the Cocoa API to implement classic design patterns - Build on your existing programming knowledge to get up and running with design patterns in Swift quickly and effectively
Примеры страниц
Оглавление
About the Author xxv About the Technical Reviewer xxvii Part I: Getting Ready 1 Chapter 1: Understanding Design Patterns 3 Chapter 2: Getting Used to Xcode 9 Chapter 3: Creating the SportsStore App 25 Part II: The Creation Patterns 53 Chapter 4: The Object Template Pattern 55 Chapter 5: The Prototype Pattern 77 Chapter 6: The Singleton Pattern 113 Chapter 7: The Object Pool Pattern 137 Chapter 8: Object Pool Variations 157 Chapter 9: The Factory Method Pattern 187 Chapter 10: Abstract Factory Pattern 207 Chapter 11: The Builder Pattern 233 Part III: The Structural Patterns 251 Chapter 12: The Adapter Pattern 253 Chapter 13: The Bridge Pattern 271 Chapter 14: The Decorator Pattern 293 Chapter 15: The Composite Pattern 311 Chapter 16: The Façade Pattern 325 Chapter 17: The Flyweight Pattern 339 Chapter 18: The Proxy Pattern 357 Part IV: The Behavioral Patterns 381 Chapter 19: The Chain of Responsibility Pattern 383 Chapter 20: The Command Pattern 401 Chapter 21: The Mediator Pattern 423 Chapter 22: The Observer Pattern 447 Chapter 23: The Memento Pattern 473 Chapter 24: The Strategy Pattern 491 Chapter 25: The Visitor Pattern 503 Chapter 26: The Template Method Pattern 517 Part V: The MVC Pattern 525 Chapter 27: The Model/View/Controller Pattern 527 Index 553
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum