Swift
Error handling
When designing a network layer, which would you make the default: throws functions, returning Result<T, E>, or Swift 6 typed throws (throws(NetworkError))?
Error handling
When designing a network layer, which would you make the default: throws functions, returning Result<T, E>, or Swift 6 typed throws (throws(NetworkError))?
NetworkingShort answerBasics
You've found network-layer code that collapses every failure into completion(nil). As a s…
#result #typed-throws
ConcurrencyMultiple choiceIntro
Which of the following statements about sync/async and serial/concurrent queues are corre…
#async
ConcurrencyShort answerAdvanced
Design the API of an async network client that several screens use at the same time. It m…
#async
Memory and ARCShort answerAdvanced
This code, which loads an image asynchronously in a UITableView cell, crashes now and the…
#async