Daniel Duan's Avatar

Daniel Duan

@duan.ca.bsky.social

SwiftUI @ Apple

249 Followers  |  59 Following  |  219 Posts  |  Joined: 08.09.2023  |  1.4595

Latest posts by duan.ca on Bluesky

Working with models for coding tasks will make good programmers better technical communicators.

31.07.2025 00:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

TIL AI is not advanced enough to handle a zip file containing about 20 years of lease contracts, for the purpose of extracting the starting date, address, and name of the places into a spreadsheet.

26.07.2025 21:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Tfw you add a log, wait for build-and-run, only to find out the value you are printing is a ObjC enum.

25.07.2025 22:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Don’t do anything in deinit other than releasing resources. Just don’t. #swiftlang

24.07.2025 17:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Why Slack displays emote in middle of texts in code voice surrounded by `` is beyond me.

22.07.2025 17:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

This weeks One Piece… I simply can’t.

22.07.2025 03:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Achievement unlocked: watching Jujutsu Kaisen at a movie theatre.

17.07.2025 07:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

ProTip for filing SwiftUI feedbacks: name your top-level view `ContentView` makes it eeeeeeever so lightly easier for whoever is trying and building your code.

10.07.2025 22:35 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Both the commercial AI labs and AI doomers leverage the lack of imagination in normal people. This is a moment where exposure to science fictions can literally save a society.

10.07.2025 05:56 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Not sure no one ever talks about this or it's just buried under the mountains of slop. The concept of Claude Code comes from mastery (or dare I say, love) of the elemental command line tools.

01.07.2025 19:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm so curious about how they are going to adapt Project Hail Mary. I had fond memories listening to this book in NYC in a summer.

01.07.2025 04:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The fixes are incremental and tiny thanks to established patterns in the code and targeted purpose of the failed tests.

27.06.2025 04:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I rewrote a project that has a well-defined unit-test collection. Lots of the tests were failing after the rewrite. Currently asking Claude code to fix them one by one. 3 tests fixed cost me $3 so far.

27.06.2025 04:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It’s wild that I can read manga in Japanese on the iPad and just select text from the panels.

25.06.2025 03:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Love this time of the year in California. The best cherries in the world is dirt cheap πŸ€—

24.06.2025 04:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I need an even simpler config language that can have arrays and dicts but doesn't allow nesting. Maybe I should make a TOML linter.

20.06.2025 21:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

TIL 50 iPhone compatible NFC tags is like $15

19.06.2025 15:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

AI + spaced repetition should have made language learning ultra efficient. It’s a source of infinite reading/listening material and conservation partner that knows exactly where you are with the language.

18.06.2025 00:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Parametric 3D modeling is basically the same as programming. You can get the same outcome with or without elegance. Elegance helps you go further.

17.06.2025 03:45 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Padding a Squircle in FreeCAD 1.0

I figured out how to draw a wire for a squircle in FreeCAD. Never seen it documented anywhere. So I wrote it up: duan.ca/2025/06/15/p...

16.06.2025 02:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've started and finished writing a whole Moleskine of physical journal this year. Now it has been scanned; assembled into a searchable PDF; put into a 3D printed case; labeled, and vacuum sealed.

(OCD go brrrrr)

13.06.2025 07:01 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
WWDC25: Improve memory usage and performance with Swift | Apple
YouTube video by Apple Developer WWDC25: Improve memory usage and performance with Swift | Apple

This talk Improve memory usage and performance with Swift tickles my brain in satisfying ways!

www.youtube.com/watch?v=LzBZ...

11.06.2025 22:08 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
WWDC25: Explore concurrency in SwiftUI | Apple
YouTube video by Apple Developer WWDC25: Explore concurrency in SwiftUI | Apple

SwiftUI’s concurrency annotations express its runtime semantics. Look, there’s a nice YouTube video about it:

youtu.be/Ttxz8bVvX3s

10.06.2025 04:46 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Meet Containerization - WWDC25 - Videos - Apple Developer Meet Containerization, an open source project written in Swift to create and run Linux containers on your Mac. Learn how Containerization...

New way to launch and manage containers on macOS, and yeap, it’s oss and entirely written in Swift!

github.com/apple/contai...

#swiftlang developer.apple.com/videos/play/...

09.06.2025 23:23 β€” πŸ‘ 42    πŸ” 12    πŸ’¬ 0    πŸ“Œ 0
Preview
Explore concurrency in SwiftUI - WWDC25 - Videos - Apple Developer Discover how SwiftUI leverages Swift concurrency to build safe and responsive apps. Explore how SwiftUI uses the main actor by default...

πŸ‘€ developer.apple.com/videos/play/...

09.06.2025 19:29 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

The agent waits for you! 😝

09.06.2025 17:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It’s time to Dub dub!

09.06.2025 01:26 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

At the learning curve a new skill where by the time I finish 80% of the project, I've learned so much that I'd rather start over and finish 100% with less time that it would have originally.

06.06.2025 04:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Having difficulty adjusting to the fact that it's June.

03.06.2025 16:25 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Hmm I'm about to Hungarian notation this FreeCAD variable set so hard.

31.05.2025 21:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@duan.ca is following 20 prominent accounts