25 Followers
92 Following
146 Posts
Enjoying “the pleasure of design and some despair and the indescribable joy of creation.” Dad. Husband. CEO. Foilist. Urban Farmer. 80% maker; 20% manager.
Workhttps://keepers.photos
Livehttps://en.wikipedia.org/wiki/Dunedin

Just came across the strangest Swift syntax that I did not know you could do:

extension SomeProtocol: where Self: SomeOtherProtocol {}

to add conformance to SomeOtherProtocol

It makes sense if you think about it, but I would expect:

extension SomeProtocol: SomeOtherProtocol {}

This is an engineer's reaction to the first verse of Leonard Cohen’s Hallelujah.

Last night, while watching the documentary "Hallelujah: Leonard Cohen, A Journey, A Song" on Netflix, I kept being struck by the first verse: "Now I've heard there was a secret cord / That David played, and it pleased the Lord / But you don't really care for music, do ya? / It goes like this, the fourth, the fifth / The minor fall, the major lift / The baffled king composing Hallelujah". 1/

Not sure who originally discovered this style of prompt but I laud their genius. #chatGPT #dontTellMeWhatToDo

When extending generic types, it’s super useful that Swift enables type constraints to be attached directly to methods, since that enables us to use a method’s generic parameter types when defining those constraints.

For example, here I’m extending SwiftUI’s Binding type with a transforming method that lets me bind a Set property as a Bool that reflects whether that Set contains a given value 👍

Just published my first Swift article of 2023! 🎉

This one is about how the content offset (or scroll position) of a SwiftUI ScrollView can be observed without requiring any UIKit bridging. Very useful when implementing things like collapsable headers, or when performing other kinds of scroll position-dependent operations 👍

https://www.swiftbysundell.com/articles/observing-swiftui-scrollview-content-offset

Observing the content offset of a SwiftUI ScrollView | Swift by Sundell

How the content offset of a SwiftUI ScrollView can be observed without bridging to UIKit.

Swift by Sundell
Here we see senior #Linux admin or developer fixing bugs like a boss. Credit IG: https://www.instagram.com/p/CnOouErpE46/?hl=en I love how he takes his own sweet time. It is like he mastered this art so many times.
🇯🇵JPN🇯🇵🌈No.1🌈 on Instagram: "柳川川下り #japan#kyushu #九州#日本#観光地#福岡観光 #trip #"

1M Likes, 3,489 Comments - 🇯🇵JPN🇯🇵🌈No.1🌈 (@japan.no.1) on Instagram: "柳川川下り #japan#kyushu #九州#日本#観光地#福岡観光 #trip #"

Instagram
"Software and cathedrals are much the same. First we build them, then we pray." ~~ Samuel Redwine

@simon

The way I look at it. Machine learning in general (including these large language models) are great when you have the following problem criteria

#1: You need to build a pattern matcher
#2: You don't know what to look for.
#3: When the pattern matcher is finally built you don't care to know what it actually looks for
#4: The results are allowed to be hilariously, insanely wrong some % of the time

And there are actually a lot of things that match that criteria

Rock paper scissors.

#CatsOfMastodon #Humor

Yes please if anyone at Apple can read this great writeup about #SwiftUI, this is exactly the issue I'm hitting with @[email protected] I just can't have the timeline scrolling up because how janky it is!

https://blog.timing.is/swiftui-production-experience-problems-solutions-performance-tips/

30,000 lines of SwiftUI in production later: We love it but you know there was going to be a “but”

timing.is shipped this month on the App Store. It was built entirely in SwiftUI. It was in development for 12 months. It would have been less if SwiftUI just gave. Unfortunately, repeatedly it would take.

_blog