2 options
Learning Swift : develop the skills required to create compelling, maintainable, and robust iOS and OS X apps with Swift / Andrew J. Wagner.
- Format:
- Book
- Author/Creator:
- Wagner, Andrew J., author.
- Series:
- Community experience distilled.
- Community experience distilled
- Language:
- English
- Subjects (All):
- iOS (Electronic resource).
- Mac OS.
- Swift (Computer program language).
- Application software--Development.
- Application software.
- Physical Description:
- 1 online resource (308 p.)
- Edition:
- 2nd ed.
- Place of Publication:
- Birmingham : Packt Publishing, 2016.
- Biography/History:
- J Wagner Andrew: Contacted on 5 Aug 16 Andrew J Wagner is a software developer who concentrates on iOS development and backend web services. He has a degree in computer engineering from Rensselaer Polytechnic Institute, New York. Currently, he works for a development shop based in Denver, CO named Chronos Interactive. He has experience working with and for large-scale companies and small-scale companies as well as running his own contracting and app companies. He is passionate about using computers as a creative outlet and writing software that is beautiful in implementation, functionality, and experience. When he isn't working or spending time with friends and family, he writes for his blog at http: //drewag. me. I would like to thank my friends and family for being there for me as support for both my troubles and triumphs. Without their encouragement, I would not have finished this book or achieved any of the other things in my life that make me proud. An especially big thanks to my parents, Fern and Joe, for continually providing me the the tools I need to do the things I love.
- Summary:
- Develop the skills required to create compelling, maintainable, and robust iOS and OS X apps with SwiftAbout This Book* Write expressive, understandable, and maintainable Swift 2 code with this hands-on tutorial* Unveil the complex underpinnings of Swift to turn your app ideas into reality* This book is packed with real-life examples to help you implement concepts as you learnWho This Book Is ForIf you are looking to build iOS or OS X apps using the most modern technology, this book is ideal for you. You will find this book especially useful if you are new to programming or if you are yet to develop for iOS or OS X. No prior programming exposure is required.What You Will Learn* Form a solid understanding of the Swift 2 language* Get to know the practical aspects of how a computer program actually works* Understand the paradigms used by Apple's frameworks so you are not intimidated by them* Utilize the vast resources written in Objective-C to better inform your Swift programming* Develop a basic portfolio of Swift code by learning the critical concepts* Experience both object-oriented and functional programming* Get to know the new coding techniques made available by Swift 2* Discover resources to ensure you never stop becoming a better developerIn DetailSwift is Apple's new programming language and the future of iOS and OS X app development. It is a high-performance language that feels like a modern scripting language. On the surface, Swift is easy to jump into, but it has complex underpinnings that are critical to becoming proficient at turning an idea into reality.This book is an approachable, step-by-step introduction into programming with Swift for everyone. It begins by giving you an overview of the key features through practical examples and progresses to more advanced topics that help differentiate the proficient developers from the mediocre ones. It covers important concepts such as Variables, Optionals, Closures, Generics, and Memory Management. Mixed in with those concepts, it also helps you learn the art of programming such as maintainability, useful design patterns, and resources to further your knowledge. This all culminates in writing a basic iOS app that will get you well on your way to turning your own app ideas into reality.Style and approachThis is an approachable, step-by-step guide to programming in Swift 2. Each topic is separated into compressible sections that are full of practical examples and easy-to-understand explanations. Each section builds on the previous topics so you can develop a proficient and comprehensive understanding of app development in Swift 2.
- Contents:
- Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing Swift ; Defining our goals for this book; Setting up the development environment; Running our first swift code; Understanding playgrounds; Learning with this book; Summary; Chapter 2: Building Blocks - Variables, Collections, and Flow Control ; Core Swift types; Constants and variables; Containers; Tuples; Arrays; Dictionaries; Swift's type system; Printing to the console; Control flow; Conditionals; Switches; Loops; Functions; Basic functions
- Parameterized functionsFunctions that return values; Functions with default arguments; Guard statement; Bringing it all together; Summary; Chapter 3: One Piece at a Time - Types, Scopes, and Projects ; Structs; Types versus instances; Properties; Member and static methods; Computed properties; Reacting to property changes; Subscripts; Custom initialization; Classes; Inheriting from another class; Initialization; Overriding initializer; Required initializer; Designated and convenience initializers; Overriding methods and computed properties; Methods; Computed properties; Casting; Upcasting
- DowncastingEnumerations; Basic declaration; Testing enumeration values; Raw values; Associated values; Methods and properties; Projects; Setting up a command-line Xcode project; Creating and using an external file; Interfacing with code from other files; File organization and navigation; Extensions; Scope; How scope is defined; Nested types; Access control; Summary; Chapter 4: To Be or Not to Be - Optionals ; Defining an optional; Unwrapping an optional; Optional binding; Forced unwrapping; Nil coalescing; Optional chaining; Implicitly unwrapped optionals; Debugging optionals
- The underlying implementationSummary; Chapter 5: A Modern Paradigm - Closures and Functional Programming ; Functional programming philosophy; State and side effects; Declarative versus imperative code; Closures; Closures as variables; Closures as parameters; Syntactic sugar; Building blocks of functional programming in Swift; Filter; Reduce; Map; Sort; How these affect the state and nature of code; Lazy evaluation; Example; Summary; Chapter 6: Make Swift Work for You - Protocols and Generics ; Protocols; Defining a protocol; Implementing a protocol; Using type aliases; Generics
- Generic functionGeneric type; Type constraints; Protocol constraints; Where clauses for protocols; Where clauses for equality; Extending generics; Adding methods to all forms of a generic; Adding methods to only certain instances of a generic; Extending protocols; Putting protocols and generics to use; Generators; Sequences; Product of Fibonacci numbers under 50; Summary; Chapter 7: Everything is Connected - Memory Management ; Computer data storage; File system; Memory; Value types versus reference types; Determining value type or reference type; Behavior on assignment; Behavior on input
- Closure capture behavior
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed July 4, 2016).
- ISBN:
- 1-78588-381-X
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.