Book Image

Mastering Swift 2 Programming [Video]

By : Dan Beaulieu
Book Image

Mastering Swift 2 Programming [Video]

By: Dan Beaulieu

Overview of this book

<p>Swift 2 is a multi-paradigm programming language that has expressive features familiar to modern functional languages, and does not forget the object-oriented features of Objective-C. Things that took a block of code in Objective-C are reduced to one or two lines in Swift. Swift is said to be safer, faster, and easier to understand, and has the energy of Apple and the open source community behind it.</p> <p>This course takes you on a journey through a wide array of topics that are crucial to writing top-level Swift code. You will get an in-depth view of various core topics such as advanced language features, memory management, interoperability, concurrency, advanced debugging, algorithms, and performance optimizations. Last but not least, we’ll also explore Swift design patterns.</p> <p>We’ll start by discussing the uniqueness of Swift, what’s new, and what’s to come. Then we take a look at fast-paced deconstructions of advanced language features such as extensions, generics, protocols, and more. Next we’ll focus on memory management as you learn how to measure and address our applications’ memory usage.</p> <p>Soon we’ll dive into opening Swift up to Objective-C, C, and even C++ code and speeding up development by leveraging third-party frameworks. We will then move on to asynchronous programming and concurrency and you’ll see how to process multiple tasks simultaneously.</p> <p>You’ll discover how to debug your applications more effectively, which is one of the key components to becoming a faster developer. As the journey comes to an end, we will take a look at compiler optimizations, performance measurements, and algorithms and complexity. Finally, you’ll explore specific design patterns can address common programming problems.</p> <h1>Style and Approach</h1> <p>This is a very practical and step-by-step tutorial that will give you a comprehensive understanding of how Swift works. It will provide you with tips and techniques to improve your applications’ performance and will give you simplified explanations so you can write cleaner and more flexible code.&nbsp;</p>
Table of Contents (8 chapters)
Chapter 7
Performance Optimization and Introduction to Algorithms
Content Locked
Section 4
Reference Types and Performance
There are performance implications of using classes and structs. The problem is that it is often difficult to know the impact until you measure it. In this video, we’ll test the performance between structs and classes. - Create a class and struct version of int - Create struct and class operators - Measure the performance between reference and value types