A Combine Kickstart Book Reviews

AUTHOR
Daniel H Steinberg
SCORE
0
TOTAL RATINGS
32

A Combine Kickstart by Daniel H Steinberg Book Summary

Combine is about to replace all those techniques we've used for decades for passing information around in an iOS or macOS App asynchronously: Target-Action, callbacks, closures, delegates, notifications... all of them.

This hand-on, fast-moving kickstart introduces you to the future of declarative and reactive programming on Apple platforms. We focus on core concepts and building discrete, easy-to-understand, pieces of a pipeline that allows your app to react to changes in the state.

Updated for Xcode 12 and Swift 5.3 and tested on Apple Silicon.

Chapter 1: The Forest

We begin the book with a simple example that doesn't use Combine at all and see how it works using UIKit and SwiftUI. We then refactor the UIKit example to use Combine and to introduce the four pillars of Combine: Publishers, Subscribers, Subscriptions, and Operators.

Chapter 2: Moving Out

In this chapter we distance the model from the view to make the setting more realistic. You'll learn to publish and subscribe across this distance, to use assign(to:on:) and assign(to:) in addition to the sink() we used in Chapter 1. We break the publishing chain into pieces and learn to republish bits to keep our controllers small and focused. We end the chapter with a deeper look at operators and we create and use a couple of our own.

Chapter 3: Sending Messages

In this chapter we focus on a variety of ways of publishing information. If you already use KVO or NotificationCenter, Combine makes this experience much nicer. If you want to add Combine to existing code, you can use a PassthroughSubject or CurrentValueSubject. We conclude with my favorite technique of creating a custom publishing chain and exposing it without revealing all of its details.

Chapter 4: Not Everything Lasts Forever

So far we've worked with simple publishers that last forever and never fail. In this chapter we look more closely at the publisher chain and show you how to handle publishers that fail either in sink() or using a catch() operator. We'll wrap the problem parts in a flatMap() for some extra magic at the end of the chapter.

Chapter 5: Single Streams

Foundation's Timer provides a publisher that we can use to emit values at regular intervals. Too fast for you? Use debounce(), throttle(), or removeDuplicates() to control the flow. In addition we use print() and breakpoint() to investigate and debug our flow and handleEvents() to kick off new processes.

Chapter 6: Multiple Streams

We take our Dice example from Chapter 5 and share() our source with multiple subscribers. Some, like count(), reduce(), and collect(), perform actions which don't publish until the source finishes. Want results right away? Use scan() instead. We bring multiple publishers together with merge(), combineLatest(), and zip().

Chapter 7: Very Far Away

Our journey ends with network calls. We use URLSession's custom publisher to retrieve values followed by operators to transform the returned output. If the data is JSON we use the decoder() operator to easily produce instances of custom types. We end with a look at how the Future publisher allows us to wrap methods with callbacks into Combine publishers.

👋 Do you love A Combine Kickstart books? Please share your friends!

share facebook whatsapp twitter pinterest telegram email
Book Name A Combine Kickstart
Genre Programming
Published
Language English
E-Book Size 8 MB

A Combine Kickstart (Daniel H Steinberg) Book Reviews 2024

💸 Want to send money abroad for free?

We transfer money over €4 billion every month. We enable individual and business accounts to save 4 million Euros on bank transfer fees. Want to send free money abroad or transfer money abroad for free? Free international money transfer!

💰 A universe of opportunities: Payoneer

Did you know that you can earn 25 USD from our site just by registering? Get $25 for free by joining Payoneer!

Please wait! A Combine Kickstart book comments loading...

Daniel H Steinberg - A Combine Kickstart Discussions & Comments

Have you read this book yet? What do you think about A Combine Kickstart by Daniel H Steinberg book? Ask the bookpedia.co community a question about A Combine Kickstart!

A Combine Kickstart E-book (PDF, PUB, KINDLE) Download

A Combine Kickstart ebook a-combine-kickstart (8 MB) download new links will be update!

A Combine Kickstart Similar Books

Book Name Score Reviews Price
An Introduction to Coding 4/5 52 Free
Agile Estimating and Planning 3.5/5 6 $45.99
Linux Basics for Hackers 4.5/5 15 $20.99
Clean Architecture 5/5 11 $30.99
Working Effectively with Legacy Code 5/5 5 $52.99

Enhance sleep, vision, cognition, flexibility, energy, long-range health and more. Performance Lab CORE Formulas support all aspects of human performance, across all walks of life. Boosts work performance and productivity with nootropics for focus, multitasking under stress, creative problem-solving and more.

Other Books from Daniel H Steinberg
Book Name Score Reviews Price
Sviluppare applicazioni per iPad 0/5 0 $23.99
Dear Elena 0/5 0 $9.99
A Functional Programming Kickstart 0/5 0 $29.99
A SwiftUI Kickstart 0/5 0 $29.99

Summary of A Combine Kickstart by Daniel H Steinberg

The A Combine Kickstart book written by Daniel H Steinberg was published on 12 January 2021, Tuesday in the Programming category. A total of 32 readers of the book gave the book 0 points out of 5.

Free Programming Books
Book Name Author Price
Doing More With Java Lee Barney Free
One Hour App Dr. Gerard Ahern Free
Developing iPhone Applications for iOS4 Laura J. White & Janusz Chudzynski Free
Functional Programming Bibliography Safari Content Team Free
Debuter avec AppleScript Nicolas Descombes Free

Coinbase is the world's most trusted place to buy and sell cryptocurrency. Open an account today, and if you buy or sell $100 or more of crypto, you'll receive $10 worth of free Bitcoin!

Paid Programming Books

Jasper is the generative AI platform for business that helps your team create content tailored for your brand 10X faster, wherever you work online.