
This topic came up at work last week, with lots of different opinions on how to deal with optionals, so I was happy to see a clear opinion here.
👉 The Danger of Playing it Safe
For any non-programmers reading this, a force-unwrap means that if your app comes across a value that just simply doesn’t exist at all ☁, then let the app crash right then and there 💥.
This article distinguishes between development, where it’s okay (and in sometimes encouraged) to crash, and production, where it’s never okay. I like the case here for avoiding poisoned app states that can occur with nil values. Just die already, already! 🤷🏻♂️ This article basically says that some development crashes are good because they expose problems, and to take a more aggressive approach with force unwrapping.
So be assertive with forced unwrapping. If there is no case where the optional should ever be nil, force unwrap
I think I’ll start taking more chances with force unwrapping and point to this article next time it comes up in a code review. 😉
Via iOS Dev Weekly.
Dax Shepard, cool guy that he is, has some great advice on raising kids. My favorite, besides no butt pads (“Your butt is a pad”), is that kids are good at figuring, uh, stuff out.
I watch them navigate situations over and over again that they would not do if I was present or my wife was present. By God, they work shit out.
👉 We Love Dax Shepard’s Easygoing Approach to Parenting
Here’s a great aspirational post if you want to be a strong and kind person.
👉 12 Things Genuinely Strong People Do
It takes 12 (kind of) simple things such as taking responsibility for your own happiness, living for the struggle, manage your emotions, showing patience and restraint, being indepdendent and vulnerable and expecting the same from others. You know, easy stuff like that. 😉
Another good perspective on happiness, from some poet. 🤷🏻♂️
The foolish man seeks happiness in the distance; the wise grows it under his feet.
James Oppenheim, American poet, novelist, and editor
The waterfall over the river Bjoreio in Norway now has a 597-foot-tall, 99-step bridge you wan walk over it for stunning views. Another reason to get to Norway (eventually)!
Also, how do you say these words?
The step bridge at Vøringsfossen goes across the river Bjoreio, connecting the viewpoints and paths at Fossatromma and Fossli.
More info 👉 Norway Just Built a 99-Step Bridge Over Their Most Iconic Waterfall
Sometimes as the crazy world swirls around us, it is useful to remember this: wickedness in others gives us purpose and makes us stronger.
There are wicked men – they are useful to thee; without them, what need would there be for virtues?
Apollonius
A nice little post on the most basic of synchronous programming questions in Swift: DispatchQueue.sync
or DispatchQueue.async
?
👉 Dispatching async or sync? The differences explained
Via iOS Dev Weekly.
Here’s a handy library for fetching, mutating, and caching server data in Swift.
And it’s SwiftUI-friendly. 👍
Pigeon is all about Queries and Mutations. Queries are objects that are responsible of fetching server data, and Mutations are objects that are responsible of modifying server data.
Via iOS Dev Weekly.