Quotes · You

“When I started counting my blessings, my whole life turned around.”

Searching for some Thanksgiving inspiration, I came across this quote from Willie Nelson, who has been through a lot.

When I started counting my blessings, my whole life turned around.

Willie Nelson

I like the idea that gratitude is not just a good idea but is also useful.

Yes, we should pause today, on Thanksgiving, (and heck, every day) to be grateful for the good things in our life. But even more than that, we should make something of it – make it useful.

Use your gratitude to show some love, some kindness, some appreciation to someone, to make the best of your situations and bring the best out of the people you know.

Via The New Yorker

Funnily enough, I found a similar idea from from Neal A. Maxwell, a Mormon scholar and educator.

We should certainly count our blessings, but we should also make our blessings count.

Neal A. Maxwell

I don’t know much about the Mormon Church, but this dude seems bright and extremely accomplished across many areas, as well as being noted as a talented writer and speaker.

I’m going to file Mr. Maxwell away along with Timothy Leary as someone I wouldn’t naturally be drawn to but who seems to have some good ideas.

Software Dev

Test your SwiftUI views at rocket speeds πŸš€ with ViewInspector πŸ•΅οΈβ€β™‚️

For years, at least in the iOS world, the idea of automatically testing your UI views was considered out of pocket. After all, the UIKit views lived in non-code files such as a storyboard or a – good lord! – a XIB.

Then came Apple’s XCUI framework, which allows for automatic UI test but takes, more or less, forever to run. I’ve seen XCUI test plans run for 3 hours, 6 hours, even 24 hours. It kind of works for a nightly test on a dedicated server, but not in realtime as you code.

But with SwiftUI, you get concise, clean, cross-platform view-layer code and can now test SwiftUI view as, well, code! This mean you can unit test your views 🀯, thanks in particular to the open source ViewInspector framework.

πŸ‘‰ ViewInspector on GitHib

ViewInspector lets you traverse your view hierarchy at runtime, asserting values as you go in traditional unit-test style.

According to the Inspection Guide, ViewInspector supports dynamic testing of @Binding, @ObservedObject, @State, @Environment and @EnvironmentObject. You can even interact with the interface, such as tapping a button and checking the result.

And it all runs in blazing fast unit test speed πŸš€ so your tests don’t have to run all night.

If you still want to do some actual visual testing, consider snapshot testing or mix in some limited XCUI tests for the right balance.

Now you can go write something cool and iterate fast. Thank you, nalexn, for this great tool. πŸ™

Quotes · The World

“Ruins, for me, are the beginning. With the debris, you can construct new ideas.”

The artist Anselm Kiefer is new to me but has been around for a long time. I like this quote of his.

Ruins, for me, are the beginning. With the debris, you can construct new ideas.

Anselm Kiefer

This quote is fitting since he was born in Germany at the end of World War 2. This guy is literally the personification of rebirth from ruins.

His art looks amazing. I’ll have to check it out in person next time I’m in New York.

Everyone Stands Under His Own Dome of Heaven