Archive for September 27, 2022

Tuesday, September 27, 2022

Oak 2.5.2

Josh Centers:

Both [Calm and Headspace] require an annual subscription fee, so I tested their free trials. […] It turns out that I find celebrity voices distracting.

[…]

Oak has a small set of both guided and unguided meditations […] Along with a few short breathing exercises […] And a couple of routines to help you fall asleep

[…]

As someone with three kids and thus a noisy house, I appreciate the large library of background sounds, which includes things like cave water, fireplace, rain, Tibetan “om,” and simple white noise.

[…]

The main thing you miss with Oak is variety. Calm and Headspace offer new meditations daily with different lessons or things to think about. I find those distracting. I just want a few minutes to clear my head, not be inundated with a message of the day.

Update (2022-10-07): Craig Grannell:

I generally recommend Oak as well. But if people want tailored and don’t fancy a massive fee, Smiling Mind is a good bet.

Debug Printing in Swift

Jordan Morgan:

For debugPrint()… Things look a little bit different. Its output is strikingly similar to the print(), but it has a fully qualified print out.

[…]

However, if the type doesn’t conform to [CustomDebugStringConvertible] - then String(reflecting:) dips down into CustomStringConvertible, which you’ve likely used in your Swift adventures.

[…]

For Mirror(reflecting:) This one is quite easy to understand, but can be incredibly useful. In short, you’re getting an instance’s type information.

[…]

Using dump you can print out entire class hierarchies and type information. In short, it gives you all the freakin’ information it can find about whatever you pass to it.