Andrew Cowley
disc0inferno.bsky.social
Andrew Cowley
@disc0inferno.bsky.social
Interests :. Hobbyist Swift developer, investing, books/reading, cooking, cycling
So it started with SwiftBySundells macro to make non optional URL's, but was frustrated that (quite reasonably) you can't escape the sandbox in a macro to check if the supplier url string is actually a working web site.
Then I saw Stewart Lynch's post where he claimed URL validation .
November 10, 2025 at 12:02 AM
@useyourloaf.com Helper for Text from an optional value that is not String:

𝚎𝚡𝚝𝚎𝚗𝚜𝚒𝚘𝚗 𝙾𝚙𝚝𝚒𝚘𝚗𝚊𝚕 𝚠𝚑𝚎𝚛𝚎 𝚆𝚛𝚊𝚙𝚙𝚎𝚍: 𝙻𝚘𝚜𝚜𝚕𝚎𝚜𝚜𝚂𝚝𝚛𝚒𝚗𝚐𝙲𝚘𝚗𝚟𝚎𝚛𝚝𝚒𝚋𝚕𝚎 {
𝚏𝚞𝚗𝚌 𝚒𝚏𝚗𝚒𝚕(_ 𝚍𝚎𝚏𝚊𝚞𝚕𝚝𝚂𝚝𝚛𝚒𝚗𝚐: 𝚂𝚝𝚛𝚒𝚗𝚐) –> 𝚂𝚝𝚛𝚒𝚗𝚐 {
𝚒𝚏 𝚕𝚎𝚝 𝚜𝚎𝚕𝚏 { 𝚂𝚝𝚛𝚒𝚗𝚐(𝚜𝚎𝚕𝚏) } 𝚎𝚕𝚜𝚎 { 𝚍𝚎𝚏𝚊𝚞𝚕𝚝𝚂𝚝𝚛𝚒𝚗𝚐 }}}
var c: 𝙸𝚗𝚝?
𝚙𝚛𝚒𝚗𝚝(“c 𝚒𝚜 \(𝚒.𝚒𝚏𝚗𝚒𝚕("𝚗ot set“))”)
September 10, 2025 at 11:02 AM
Reposted by Andrew Cowley
How the fuck is Bill Gates' blog this cool? 🤯www.gatesnotes.com/home/home-pa...
April 11, 2025 at 11:05 PM
Since moving back to UK keyboards I’ve really missed the ease of hitting the # key, esp. in Xcode.
I bought a keychron K3 max (ISO) keyboard, but that didn’t work until...

I changed the Keyboard Input type to “British PC” and it’s like magic. Bonus: working on the MacBook Air
February 26, 2025 at 6:27 PM
Random walks through Swift documentation occasionally surprise you. Today it was attributes (link below).
“@dynamicCallable” is new to me.. and allows you to call an instance of a type as if it was a function.
#filedForFutureReference

docs.swift.org/swift-book/d...
February 24, 2025 at 8:51 AM
Since joining BlueSky, mostly with the intent of following escapees from X land, I have been bombarded with political, US centric posts.
Is there a way to remove them? (I keep clicking “suggest less”, but clearly the algorithm isn’t listening.. :(
December 13, 2024 at 5:01 PM