Chris Gaafary

2 Followers
47 Following
48 Posts

@Jeehut I like to use it for switch statements in particular. With if statements one could use a ternary operator but I think variable assignment with a switch statement works very nicely.

I do like the conciseness of your proposed “do let…” syntax but I’m also empathetic to those who want to keep the surface area of the language in check.

For me personally, “do let… catch” seems analogous enough to “guard let… else” that it feels fairly intuitive already.

@Jeehut I think you can assign a “do…catch {}” expression to a variable just like you can an if or switch statement. That also reduces lines of code and avoids having to set uninitialized variables.

Maybe slightly more verbose than your method but probably more versatile.

🎉 I'm eager to announce we've released Hummingbird 2!

This brand new Swift Web Framework has been designed for Swift 6 and structured concurrency.

It's packed full of major improvements, making Swift on the Server better than ever before!

https://hummingbird.codes/news/hummingbird-2

Hummingbird 2

Version 2.0 of Hummingbird - the swift server framework has been released.

@StewartLynch that’s too bad. I wish there were good ways to tune the prompts to our preferences. For example to prefer using async await syntax for concurrent code.
Cross-platform Swift code running in the browser thanks to WebAssembly: https://www.pointfree.co/episodes/ep291-cross-platform-swift-webassembly. Great tutorial that may help someone interested in bringing their Swift business logic to the Web.
(#Wasm #WebAssembly #Swift #SwiftWasm)
Episode #291: Cross-Platform Swift: WebAssembly

We are going to take a Swift feature into the browser. We will set up a WebAssembly application from scratch, show how to run and debug it, and even set up some basic UI. And then we will integrate our existing model into it, all powered by the magic of Swift’s Observation framework.

✨New blog post!

I recently played around with creating a custom SF symbol and couldn't find a good easy to read resource on how to get started.

So I decided to write a new article on the topic based on my experience.
https://www.danijelavrzan.com/posts/2024/06/create-custom-sf-symbols

Create Custom SF Symbols in Sketch | Danijela's blog

Symbols (or icons) are an essential part of any app. Luckily, when developing for Apple platforms, we have the amazing collection of SF symbols at our disposal. But even with over 6000 symbols already available, sometimes the one you need doesn't exist yet. We'll go over how to create a custom symbol in Sketch.

Danijela's blog
@josh are there any good non Apple exclusive machine learning frameworks?

The June episode of Swift News is out now!

https://youtu.be/jn1sYfLnvq4

Swift News - Apple Intelligence, WWDC 24, Swift Testing, SwiftUI & More

YouTube
The day has come when my wife needs me to write an iOS app for her. I've been preparing my whole life for this. I got this.

Installed Swift on my RaspberryPi server. Seems to work, even though it’s still v5.

#raspberrypi #swift #apple