Swift 2 Design Patterns

Nonfiction, Computers, Programming, Programming Languages, C & C++, C, Internet
Cover of the book Swift 2 Design Patterns by Julien Lange, Packt Publishing
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Julien Lange ISBN: 9781785886119
Publisher: Packt Publishing Publication: October 28, 2015
Imprint: Packt Publishing Language: English
Author: Julien Lange
ISBN: 9781785886119
Publisher: Packt Publishing
Publication: October 28, 2015
Imprint: Packt Publishing
Language: English

Build robust and scalable iOS and Mac OS X game applications

About This Book

  • Learn to use and implement the 23 Gang of Four design patterns using Swift 2
  • Design and architect your code for Swift application development
  • Understand the role, generic UML design, and participants in the class diagram of the pattern by implementing them in a step-by-step approach

Who This Book Is For

This book is intended for competent Swift developers who want to apply enduring design patterns with Swift to structure and scale their application code.

What You Will Learn

  • Choose the appropriate pattern depending on the problem to be solved
  • Understand the generic class diagram of each of the 23 GoF patterns and how each object participates in the pattern
  • Use Swift to implement these patterns even though the language doesn't provide all of the object-oriented programming concepts such as abstract class, interface, and so on
  • Architect your software to avoid the overuse of memory, time spent on calculations, or high network traffic
  • Find the best way to organize your code to make it more secure from the outside world
  • Prepare your code to make it more flexible when the consumer changes or the third-party component hidden code changes
  • Structure your code to change the algorithm to apply at runtime
  • Deliver Flyweight responsibility to your objects

In Detail

Swift is a multi-paradigm language. It has expressive features familiar to those used to work with modern functional languages, while also keeping the object-oriented features of Objective-C. It remains compatible with Apple's legacy codes and frameworks. A design pattern systematically names, motivates, and explains a general design that addresses a recurring design problem in object-oriented systems. It describes the problem, the solution, when to apply the solution, and its consequences. It also gives implementation hints and examples. Knowledge about design patterns is also one of the best ways to make you different compared to other low-level developers.

This book shows you how to use Swift 2 to learn about 23 Gang of Four (GoF) design patterns, and is organized into three categories. The book will present you the five creational patterns, followed by the seven structural patterns, and finishing with the 11 behavioral patterns as defined by the GoF. Each chapter will introduce the pattern by defining its role, which common problems the pattern should be used for, its generic UML representation, how each objects presented in the class diagram participate in the pattern, and what the role of each of these objects is. The book then presents you with a concrete case as an illustration that will be used to implement the pattern using Swift.

Style and approach

A step-by-step tutorial completed with screenshots and code highlights wherever necessary. Each chapter discusses one or more patterns with its definitions and a simple-to-follow illustration case using a playground or XCText project to implement it with Swift.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

Build robust and scalable iOS and Mac OS X game applications

About This Book

Who This Book Is For

This book is intended for competent Swift developers who want to apply enduring design patterns with Swift to structure and scale their application code.

What You Will Learn

In Detail

Swift is a multi-paradigm language. It has expressive features familiar to those used to work with modern functional languages, while also keeping the object-oriented features of Objective-C. It remains compatible with Apple's legacy codes and frameworks. A design pattern systematically names, motivates, and explains a general design that addresses a recurring design problem in object-oriented systems. It describes the problem, the solution, when to apply the solution, and its consequences. It also gives implementation hints and examples. Knowledge about design patterns is also one of the best ways to make you different compared to other low-level developers.

This book shows you how to use Swift 2 to learn about 23 Gang of Four (GoF) design patterns, and is organized into three categories. The book will present you the five creational patterns, followed by the seven structural patterns, and finishing with the 11 behavioral patterns as defined by the GoF. Each chapter will introduce the pattern by defining its role, which common problems the pattern should be used for, its generic UML representation, how each objects presented in the class diagram participate in the pattern, and what the role of each of these objects is. The book then presents you with a concrete case as an illustration that will be used to implement the pattern using Swift.

Style and approach

A step-by-step tutorial completed with screenshots and code highlights wherever necessary. Each chapter discusses one or more patterns with its definitions and a simple-to-follow illustration case using a playground or XCText project to implement it with Swift.

More books from Packt Publishing

Cover of the book Microsoft Dynamics GP 2013 Reporting, Second Edition by Julien Lange
Cover of the book Jenkins Fundamentals by Julien Lange
Cover of the book Joomla! 1.5 Development Cookbook: LITE by Julien Lange
Cover of the book Practical Game Design with Unity and Playmaker by Julien Lange
Cover of the book Cloud Native Architectures by Julien Lange
Cover of the book Salesforce CRM — The Definitive Admin Handbook - Third Edition by Julien Lange
Cover of the book Heroku Cookbook by Julien Lange
Cover of the book Java for Data Science by Julien Lange
Cover of the book Learning D3.js 4 Mapping - Second Edition by Julien Lange
Cover of the book Hands-On Chatbot Development with Alexa Skills and Amazon Lex by Julien Lange
Cover of the book Learning Xero by Julien Lange
Cover of the book SQL Server 2017 Developer’s Guide by Julien Lange
Cover of the book Instant OpenNMS Starter by Julien Lange
Cover of the book The Oracle Universal Content Management Handbook by Julien Lange
Cover of the book Instant Jsoup How-to by Julien Lange
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy