Reactive Programming with Swift

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 28. April 2016
  • |
  • 238 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78588-204-3 (ISBN)
Leverage the power of the Functional Reactive Programming paradigm with Swift to develop robust iOS applicationsAbout This BookBuild highly responsive applications with this practical introduction to Reactive programmingThis book uses ReactiveCocoa, the most popular solution for Reactive Programming on iOS to install, debug, and develop a framework with SwiftSwitch from the traditional programming style to the reactive paradigm to code your first reactive applications with easeWho This Book Is ForReactive Programming with Swift is for Swift developers who want to start making more powerful and efficient applications. You need a basic understanding of Swift to follow along. This book takes a first-principles approach to what Reactive Programming is and how you can start implementing it in your next iOS applications.What You Will LearnSwitch your programming concepts from imperative to Functional reactive programmingImprove your app's maintenance by developing with a different paradigmCreate unit tests and automation tests using the ReactiveCocoa frameworkCreate clear code that is very easy to readGet accustomed to migrating mobile apps to the Reactive way of programmingPerform asynchronous calls and join them laterIn DetailReactive programming helps you write applications that are more powerful and efficient. You can write more software, help more people, and create applications that scale. Reactive programming is a growing paradigm that we will help you set to work in Swift.Reactive Programming with Swift guides you through migrating from the traditional way of developing to the new ReactiveCocoa framework, which uses Swift as its main programming language. You will learn how to develop with this framework, debug code, create unit tests, use additional frameworks, and convert a traditional framework into a ReactiveCocoa one.Starting with a crash course on the fundamental concepts of Reactive programming, we'll set you up so you're ready to create reactive applications. We'll then move on to topics such as Graphical events, Streaming, and Core data, which will help you dive deeper with advanced programming. The concept of switching your programming concepts from imperative to functional reactive programming will also be covered. By the end of this book, you will be able to successfully create highly functional apps using Swift.Style and approach This book is a fast-paced, practical guide compiled with ample images and screenshots that explain how to create apps and demonstrate their logic.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78588-204-3 (9781785882043)
178588204X (178588204X)
weitere Ausgaben werden ermittelt
Cecil Costa, also know as Eduardo Campos in Latin countries, is a Euro-Brazilian freelance developer who has been learning about computers since getting his first 286 in 1990. From then on, he kept learning about programming languages, computer architecture, and computer science theory.
Learning and teaching are his passions; this is the reason why he worked as a trainer and an author. He has been giving on-site courses for companies such as Ericsson, Roche, TVE (a Spanish television channel), and lots of others. He is also the author of Swift Cookbook First Edition and Swift 2 Blueprints, both by Packt Publishing. He will soon publish an iOS 10 programming video course.
Nowadays, Cecil Costa teaches through online platforms, helping people from across the world.
In 2008, he founded his own company, Conglomo Limited (, which offers development and training programs both on-site and online.
Throughout his professional career, he has created projects by himself and also worked for different companies from small to big ones, such as IBM, Qualcomm, Spanish Lottery, and DIA%.
He develops a variety of computer languages (such as Swift, C++, Java, Objective-C, JavaScript, Python, and so on) in different environments (iOS, Android, Web, Mac OS X, Linux, Unity, and so on) because he thinks that a good developer needs to learn all kinds of programming languages to open their mind; only after this will they really understand what development is.
Nowadays, Cecil is based in the UK, where he is progressing in his professional career as an iOS team lead.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • Table of Contents
  • Preface
  • Chapter 1: Introduction to Reactive Programming
  • What is reactive programming?
  • The history of reactive programming
  • Paradigms - declarative versus imperative
  • What is functional programming?
  • Choosing reactive programming
  • Swift - interactive, safe, and fast
  • The ReactiveCocoa project
  • ReactiveCocoa extensions
  • Migrating to ReactiveCocoa
  • The future of reactive programming
  • Summary
  • Chapter 2: Installing ReactiveCocoa and Using It with Playground
  • The ReactiveCocoa website
  • Exploring ReactiveCocoa
  • Installing ReactiveCocoa via CocoaPods
  • Installing CocoaPods without administrator permission
  • Installing CocoaPods with Carthage
  • Using Playground
  • Summary
  • Chapter 3: Performing UI Events with ReactiveCocoa
  • An overview of the project
  • Setting up the project
  • Creating a validator class
  • Validating text fields
  • Enabling and disabling the button
  • Using UIDatePicker
  • Selecting the gender of the user
  • Adding more information
  • Getting the right input type
  • Using bidirectional channels
  • Displaying your horoscope
  • Summary
  • Chapter 4: Network and Change Propagation
  • Overviewing the project
  • Setting up the project
  • Searching for a movie
  • Creating signals
  • Handling errors
  • Filling in the table view
  • Model-View-ViewModel bindings
  • Displaying movie posters
  • Improving your code for a second scene
  • Filling in the movie form
  • Implementing the genre signal
  • Changing a few details in the first scene
  • Summary
  • Chapter 5: Enhance Your Application Using RAC Extensions
  • An overview of the project
  • Setting up the project and installing extensions
  • Mocking up the first scene
  • Retrieving information from GPS
  • Signaling
  • Taking pictures with a camera
  • Using gesture recognizers
  • Storing pictures
  • Saving pictures to the photo library
  • Storing coordinates
  • Showing coordinates
  • Summary
  • Chapter 6: Using the ReactiveCocoa 4 Style
  • An overview of the project
  • Setting up the project
  • Developing the Currency class
  • Creating the Currency Manager
  • Creating the Product class
  • Implementing a shopping cart
  • Resuming the ViewController class
  • Creating the checkout scene
  • Testing the application
  • Summary
  • Chapter 7: Testing Your Application
  • Checking the expected results
  • Creating unit tests
  • Using signals for checking the results
  • Testing an asynchronous signal
  • Testing the UI
  • Profiling with Instruments
  • Summary
  • Chapter 8: Migrating a Real Application to ReactiveCocoa
  • Knowing the application
  • Creating a new framework
  • Replacing the airplane delegate
  • Reorganizing the signals
  • Checking the dark side
  • Splitting the signal again
  • Waiting for 10 seconds
  • Reversing the geolocation
  • Avoiding repeated calls
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

35,85 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok