Swift for Programmers – eBook

eBook details

  • Authors: Paul J. Deitel, Harvey Deitel
  • File Size: 9 MB, 18 MB
  • Format: ePub (original), PDF (converted)
  • Length: 405 pages
  • Publisher: Pearson; 1st Edition
  • Publication Date: January 16, 2015
  • Language: English
  • ASIN: B00SBCJHGM
  • ISBN-10: 0134021363, 9332552355
  • ISBN-13: 9789332552357, 978-0134021362

The professional programmer’s Deitel guidebook to Apple’s new Swift programming language for the iOS® and OS X® platforms

Written for programmers with education in object-oriented programming in a C-based language like Objective-C, Java, C# or C++, Swift for Programmers, (PDF) applies the Deitel signature live-code approach with scores of complete, working, real-world programs to discover the new Swift language in depth. The code examples include syntax shading, code highlighting, line-by-line code walkthroughs, rich commenting and live program outputs. The ebook features thousands of lines of proven Swift code and tips that will help you build robust applications.

About This eBook

The Swift programming language was questionably the most important announcement at Apple’s 2014 Worldwide Developers Conference. Though apps can still be developed in Objective-C®, Apple says that Swift is its applications programming and systems programming language of the future.

Swift is a modern language with a simpler syntax than Objective-C. Because Swift is new, its designers were able to include common programming language features from languages like Objective-C, Python, Java, C#, Ruby and many others. These features contain automatic reference counting (ARC), type inference, String interpolation, tuples, closures (lambdas), extensions, optionals, generics, operator overloading, functions with multiple return values, switch statement enhancements and much more. We’ve been able to develop apps more swiftly in Swift than with Objective-C and the code is clearer, shorter and runs faster on today’s multi-core architectures.

Swift also removes the possibility of many errors common in other languages, making your code more secure and robust. Some of these error-prevention features include ARC, no implicit conversions, required braces around every control statement’s body, no pointers, assignment operators that do not return values, necessitating initialization of all variables and constants before they’re used, automatic checking for an overflow of integer calculations, array bounds checking and more. You can combine Objective-C and Swift in the same app to enhance present Objective-C apps without having to rewrite all the code. Your apps will easily be able to interrelate with the Cocoa®/Cocoa Touch® frameworks, which are largely written in Objective-C.

You can also employ the new Xcode playgrounds with Swift. A playground is an Xcode window in which you can enter Swift code that compiles and performs as you type it. This lets you see and hear your code’s results as you write it, quickly find and correct errors, and conveniently experiment with features of Swift and the Cocoa/Cocoa Touch frameworks.

Practical, Example-Rich Coverage of:

An outstanding introduction to Apple’s new programming language. Line-by-line code explanations. Practical real-world abstractions throughout the code. Full of links to great resources. Features are presented by comparison to established programming concepts making Swift easy to learn for developers new to Apple’s platforms. A must-read.” — René Cacheaux, iOS Architect, Mutual Mobile

Apple took everyone by surprise when they declared a new programming language for developing iOS and Mac applications. Taking programs from Objective-C and many other languages, Apple constructed a new language from the ground up. There is a lot to learn–new composition, new phrases and more. It all seems intimidating, but the Deitels have written an ebook that thoroughly explores Xcode 6 and Swift and guides you through what you need to know, regardless of which language you came from.” — Robert McGovern, Independent Developer

It’s surprising that an ebook of this quality, breadth and depth has appeared so soon after Swift was announced. The ideal accompaniment to Apple’s reference documentation. This developers’ ebook takes a detailed look at Swift. Whether you’re moving to the Apple ecosystem from a C#, Java or C++ background or you’re an Objective-C programmer looking to renew your skills to this latest and most exciting of Apple’s languages, this ebook is for you. Supplements the Deitels’ excellent book iOS 8 for Programmers: An App-Driven Approach with Swift and upholds their trademark high-quality approach, containing many interactive, nontrivial code examples with in-depth code walkthroughs and best practices. Uses the power of Swift with Cocoa’s Foundation classes. A must-have for any serious Apple developer.” — Rik Watson, Technical Team Lead for HP Enterprise Services (Applications Services)

NOTE: The product only includes the ebook, Swift for Programmers in PDF. No access codes are included.

Reviews

There are no reviews yet.

Be the first to review “Swift for Programmers – eBook”