Mastering Swift 2 Programming [Video]

Preview in Mapt

Mastering Swift 2 Programming [Video]

Dan Beaulieu

1 customer reviews
An in-depth video course that covers advanced Swift programming and focuses on writing highly performant, elegant, and readable code
Mapt Subscription
FREE
$29.99/m after trial
Video
$80.75
RRP $94.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$80.75
$29.99p/m after trial
RRP $94.99
Subscription
Video
Start 30 Day Trial

Frequently bought together


Mastering Swift 2 Programming [Video] Book Cover
Mastering Swift 2 Programming [Video]
$ 94.99
$ 80.75
Advanced Tools and Techniques Beyond Base R [Video] Book Cover
Advanced Tools and Techniques Beyond Base R [Video]
$ 124.99
$ 106.25
Buy 2 for $35.00
Save $184.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Video Details

ISBN 139781785889998
Course Length4 hours and 56 minutes

Video Description

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.

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.

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.

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.

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.

Style and Approach

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. 

Table of Contents

Swift Primer and Introduction to Functional Programming
The Course Overview
Swift Review – Operators, Types, and Strings
Swift Review – Collection Types
Swift Review – Classes, Structs, and Enums
Swift Review – Flow of Control and Optionals
What’s New in Swift 2?
Functional Programming
Protocol Oriented Programming
Advanced Language Features and Functional Concepts
Introducing Game of Life
Function Value Types and Closure Syntax
Extensions
Generics
Higher-order Functions – Filter
Higher-order Functions – Map
Higher-order Functions – FlatMap
Higher-order Functions – Reduce
Sequences and Generators
Exploring Swift’s Memory Management
What Is ARC?
Introduction to Instruments
Strong Reference Cycles
Fixing our Leak – Weak and Unowned References
Creating a Zombie
8 Tips to Improve Memory Performance
Interoperability and Working with 3rd Party Libraries
Implicit Bridging and Cocoa
Exposing Swift to Objective-C
Using Objective-C in Swift
Interacting with C
Wrapping C++ for Using in Swift
Working with CocoaPods
Incorporating an Objective-C Library
Concurrency and Grand Central Dispatch
Understanding Concurrency
Threading with NSThread
Locking Threads
Asynchronous Methods
Concurrency with NSOperationQueue
Grand Central Dispatch
Working with Dispatch Queues
Asynchronous Programming with Dispatch Groups
Troubleshooting, Advanced Debugging, and Error Handling
The LLDB Debugger
Advanced Breakpoints
The LLDB Command Language
Address Sanitization
Assertions
Error Handling
Performance Optimization and Introduction to Algorithms
Identifying Performance Bottlenecks with XCTest and Time Profiler
Whole Module Optimization
Reducing Dynamic Dispatch
Reference Types and Performance
Generic Specialization
Choosing the Right Algorithm
Memoization
Design Patterns
Design Patterns Overview
Singleton Pattern
Factory Pattern
Adapter Pattern
Façade Pattern
Chain of Responsibility Pattern
Observer Pattern

What You Will Learn

  • Gain useful insight into your code’s memory performance by analyzing your application with powerful Xcode tools
  • Utilize the CocoaPods package manager to import third-party Swift libraries into your project
  • Employ bridging headers to interoperate with other languages such as Objective-C, C, and C++ code
  • Write concurrent applications by utilizing asynchronous functions and powerful multi-threading features such as Grand Central Dispatch
  • Improve your development speed by gaining advanced debugging skills
  • Write safer code by seeing how to throw, catch, and handle exceptions
  • Choose the best algorithm for your application by comparing performance metrics in XCTest
  • Take a look at several design patterns that address common problems programmers face in Swift

Authors

Screenshots

Table of Contents

Swift Primer and Introduction to Functional Programming
The Course Overview
Swift Review – Operators, Types, and Strings
Swift Review – Collection Types
Swift Review – Classes, Structs, and Enums
Swift Review – Flow of Control and Optionals
What’s New in Swift 2?
Functional Programming
Protocol Oriented Programming
Advanced Language Features and Functional Concepts
Introducing Game of Life
Function Value Types and Closure Syntax
Extensions
Generics
Higher-order Functions – Filter
Higher-order Functions – Map
Higher-order Functions – FlatMap
Higher-order Functions – Reduce
Sequences and Generators
Exploring Swift’s Memory Management
What Is ARC?
Introduction to Instruments
Strong Reference Cycles
Fixing our Leak – Weak and Unowned References
Creating a Zombie
8 Tips to Improve Memory Performance
Interoperability and Working with 3rd Party Libraries
Implicit Bridging and Cocoa
Exposing Swift to Objective-C
Using Objective-C in Swift
Interacting with C
Wrapping C++ for Using in Swift
Working with CocoaPods
Incorporating an Objective-C Library
Concurrency and Grand Central Dispatch
Understanding Concurrency
Threading with NSThread
Locking Threads
Asynchronous Methods
Concurrency with NSOperationQueue
Grand Central Dispatch
Working with Dispatch Queues
Asynchronous Programming with Dispatch Groups
Troubleshooting, Advanced Debugging, and Error Handling
The LLDB Debugger
Advanced Breakpoints
The LLDB Command Language
Address Sanitization
Assertions
Error Handling
Performance Optimization and Introduction to Algorithms
Identifying Performance Bottlenecks with XCTest and Time Profiler
Whole Module Optimization
Reducing Dynamic Dispatch
Reference Types and Performance
Generic Specialization
Choosing the Right Algorithm
Memoization
Design Patterns
Design Patterns Overview
Singleton Pattern
Factory Pattern
Adapter Pattern
Façade Pattern
Chain of Responsibility Pattern
Observer Pattern

Video Details

ISBN 139781785889998
Course Length4 hours and 56 minutes
Read More
From 1 reviews

Read More Reviews

Recommended for You

Advanced Tools and Techniques Beyond Base R [Video] Book Cover
Advanced Tools and Techniques Beyond Base R [Video]
$ 124.99
$ 106.25
Compass - powerful SASS library that makes your life easier [Video] Book Cover
Compass - powerful SASS library that makes your life easier [Video]
$ 53.99
$ 45.90
Building Effective Microservices [Video] Book Cover
Building Effective Microservices [Video]
$ 124.99
$ 106.25
Learning Microsoft Cognitive Services - Second Edition Book Cover
Learning Microsoft Cognitive Services - Second Edition
$ 35.99
$ 25.20
Pandas Cookbook Book Cover
Pandas Cookbook
$ 39.99
$ 28.00
Machine Learning with R Cookbook - Second Edition Book Cover
Machine Learning with R Cookbook - Second Edition
$ 39.99
$ 28.00