Writing robust and predictable unit tests for asynchronous code has always been particularly challenging, given that each test method is executed completely serially, line by line (at least when using XCTest). So when using patterns like completion handlers, delegates, or even Combine, we’d always have to find our way back to our synchronous testing context […]
Many of us spend our workdays responding to a never-ending stream of emails and texts. We feel stressed out and perpetually behind on our to-do list. But what if there was a better way to work? This week, we revisit a favorite conversation about “deep work” with computer scientist Cal Newport. And we’ll visit a […]
Modern shipping container homes are popular due to their versatility and affordability. Despite having a pre-made shape containers can be stacked in a lot of different ways to produce unusual forms for modern dwellings.. Thanks to their low price (about 2,000 per container) they can be used to produce not only modern houses and retreats for […]
In Swift, there are essentially two main ways to check whether a given collection is empty. We can either check if the collection’s count is equal to 0, or we can use the dedicated isEmpty property. At first, it might seem like those two ways are completely identical in terms of how they behave. In […]
Posted by Jake Wharton on November 11, 2021 Five years ago the Cash App Android client started splitting our UI rendering and UI presenter responsibilities into distinct types. We had leaned into RxJava heavily in the years prior, and it became very effective in facilitating this split. I ended up giving a fun talk, “The State […]
Nearly six years ago, I was thrilled to invest in Andrew Farah and the team at Density when they had a vision for building anonymous tracking of how people use office buildings, rentals and other public spaces. And today, as the company announces their latest funding round of $125M at a $1B+ valuation, I’m still […]
If we think about it, so much of the code that we write on a daily basis essentially consists of a series of data transformations. We take data in one shape or form — whether that’s actual model data, network responses, or things like user input or other events — we then run our logic […]
Episode 120 (The Prairie Chicken in Wisconsin: Highlights of a Study of Counts, Behavior, Turnover, Movement, and Habitat) The Memory Palace is a proud member of Radiotopia, from PRX, a curated network of extraordinary, story-driven shows. Music We move between three different pieces from Camille Saint-Saens’: Suite, Op. 90: II Menuet, and two from Carnival of… Source […]
BOOKWORM NEWS: Heard It in a Love Song by Tracey Garvis Graves is now live!! — “Love doesn’t always wait until you’re ready. Layla Hilding is thirty-five and recently divorced. Struggling to break free from the past—her glory days as the lead singer in a band and a ten-year marriage to a man who never […]
If you know anything about Core Data, you’re probably aware of Xcode’s built-in model editor. If you’ve used Core Data, you’ve probably spent more time with it than you care to remember. It edits the data model, which then gets compiled to a binary form Core Data can use when your app runs. Conveniently it […]