Preface
Object-oriented programming, also known as OOP, is a required skill in absolutely any modern software developer job. It makes a lot of sense because object-oriented programming allows you to maximize code reuse and minimize maintenance costs. However, learning object-oriented programming is challenging because it includes too many abstract concepts that require real-life examples to be easy to understand. In addition, object-oriented code that doesn’t follow best practices can easily become a maintenance nightmare.
Swift is a multiparadigm programming language and one of its most important paradigms is OOP. If you want to create great applications and apps for Mac, iPhone, iPad, Apple TV, and Apple Watch (Mac OS, iOS, tvOS, and watchOS operating systems) you need to master OOP in Swift 3. However, Swift 3 is not limited to Apple platforms and you can take advantage of your Swift 3 knowledge to develop applications that target other platforms and use it for server-side code. In addition, as Swift also grabs nice features found in functional programming languages, it is convenient to know how to mix OOP code with functional programming code.
This book will allow you to develop high-quality reusable object-oriented code in Swift 3. You will learn the OOP principles and how Swift implements them. You will learn how to capture objects from real-world elements and create object-oriented code that represents them. You will understand Swift’s approach towards object-oriented code. You will maximize code reuse and reduce maintenance costs. Your code will be easy to understand and it will work with representations of real-life elements.