
Β

Β
I really like the points made in this article about Swift error handling: using throw/try/catch is actually much better than returning optionals or the new Result type.
πBenefits of using throwing functions (try) – Swift’s most underrated feature?
Throwing errors, when used throughout your codebase, helps you reduce and simplify code. It makes your unit testing easier too.
As a former Java programmer, I have to admit some hesitance to throw anything. Java error handling can turn into a nightmare of its own.
But the author makes some compelling arguments why throwing might make sense in Swift. Error handling is never fun; let’s do it the easy way. π€·π»ββοΈ
In a related note, Re: Making Wrong Code Look Wrong also talks about the benefits of throwing in Swift, in particular with relation to local reasoning. π
Via iOS Dev Weekly.
Next time I’m in Portugal, I’m going to ride the little yellow tram. What a stylish way to get around! I don’t even care where I’m going. π
Quartz published the story of the Tulsa massacre of 1921, in which the burgeoning “Black Wall Street” neighborhood of Tulsa was set ablaze in a bizarre night of white racial rage. Hundreds or African Americans were killed, and many thousands lost their homes.
π We still donβt know just how much was lost in the Tulsa massacre of 1921
More than a thousand African American homes and businesses were looted and burned to the ground; you had a thriving community occupying more than 35 square blocks in Tulsa that was totally destroyed.
But the real story is how little we know about this, “the single largest incident of racial violence in American history.” This terrible story was purposefully forgotten, apparently out of shame.
Despite the gravity of the event, like other important chapters of African-American history, the Tulsa race massacre was all but deleted from the USβs collective memory for decades.
It is also interesting that this savage attack did not destroy the neighborhood, which came bouncing back stronger than ever after the violence. However, eventually the larger forces of “desegregation, urban redesign, and competition from large-scale white businesses” did it in. π€¦π»ββοΈ
Via Apple News.
