I really like the classes. Chris et al are very thorough and interesting. There’s a lot to learn…
As I said before, for most of my career, I’ve been a professional coder (I started before “coder” was a word; we called ourselves “programmers”) and I know that once an app enters the “wild” anything can go wrong. My specific question refers to this example from Databases M2 L4.
Notice this bug → let contentMap = doc[“contant”] as! [String:Any] ← I misspelled “content”. XCode returned “Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value”
“In the wild” a database could get broken resulting in a crash. Can someone point me to a reference on how to code to protect an app from something like this. I’m thinking that we can’t code to catch the error and fix the database, but we can code to catch the crash and to, at least, tell the user to call support.