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
@hdcola 这题有解决办法吗?
@hdcola 兄台,这…..没解吧。你把人家chatgpt给难倒了吧。
@hdcola 大叔,自娱了呢?

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