In the not-too-distant future of late summer 2024, we’ll be expecting our first child. This is your opportunity to share with someone willing to listen what you usually have to bash into other people’s heads: What heartfelt wisdom do you have to share? Is there anything you wish you knew when you had your first child?
Continue reading …
By default, the string output of JSValue
in JavaScriptCore printing (e.g. via my console.log
) will produce a mere [object Object]
. That’s not very helpful. It’s simple to pretty-print objects (if they are merely data-containers) via JSON:
Continue reading …
If your macOS app is a SwiftUI app with custom button styles that targets macOS 15+, you don’t need my click-through fix anymore. Reported via Feedback Assistant on 2024-04-11, FB13720950
is now closed because macOS 15 Beta 2 solved the issue.
Continue reading …
Primitive Obsession is not called “Primitive Preference” for a reason: we can find ourselves clinging to primitives like addicts, even when every aspect of our project nudges us, hints, and screams that we should be doing something different. It’s never just “a string”. It’s never just “an integer”.
Continue reading …
In my recent post titled “The Rake and Its Prongs” I introduced a function towards the end, called NSRange.isValidInsertionPointLocation(at:)
. It’s used to consider the after-end location as part of the range.
Continue reading …