Daniel Duan
duan.ca
Daniel Duan
@duan.ca
SwiftUI @ Apple
Out of nowhere I intentionally used the dc command for the first time today.
November 7, 2025 at 9:03 AM
Unexpected usage of sqlite: to get a strict proleptic Gregorian calculation of seconds since unix epoch, use a query like `SELECT CAST(ROUND( (julianday(?) - 2440587.5) * 86400.0 ) AS INTEGER);` instead of Foundation's Date.
November 5, 2025 at 3:44 AM
Type vimtutor in a terminal.
October 29, 2025 at 6:25 PM
Very exited for Demon Slayer tonight.
September 11, 2025 at 9:57 PM
Edge of Tomorrow (2015) is a movie about Claude Code.
September 9, 2025 at 6:46 PM
TIL what my car looks like after visiting 3 national parks in a row.
September 2, 2025 at 1:55 AM
One Piece is basically Journey to the West except the monkey is a family, and one of them wants to be king.
August 24, 2025 at 11:39 PM
The movie Weapons: 🤯
August 9, 2025 at 7:53 AM
Rewrite Claude Code in Rust, you cowards!
August 8, 2025 at 9:29 PM
Working with models for coding tasks will make good programmers better technical communicators.
July 31, 2025 at 12:06 AM
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.
July 26, 2025 at 9:48 PM
Tfw you add a log, wait for build-and-run, only to find out the value you are printing is a ObjC enum.
July 25, 2025 at 10:36 PM
Don’t do anything in deinit other than releasing resources. Just don’t. #swiftlang
July 24, 2025 at 5:46 PM
Why Slack displays emote in middle of texts in code voice surrounded by `` is beyond me.
July 22, 2025 at 5:47 PM
This weeks One Piece… I simply can’t.
July 22, 2025 at 3:04 AM
Achievement unlocked: watching Jujutsu Kaisen at a movie theatre.
July 17, 2025 at 7:22 AM
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.
July 10, 2025 at 10:35 PM
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.
July 10, 2025 at 5:56 AM
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.
July 1, 2025 at 7:08 PM
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.
July 1, 2025 at 4:17 AM
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.
June 27, 2025 at 4:38 AM
It’s wild that I can read manga in Japanese on the iPad and just select text from the panels.
June 25, 2025 at 3:19 AM
Love this time of the year in California. The best cherries in the world is dirt cheap 🤗
June 24, 2025 at 4:10 AM
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.
June 20, 2025 at 9:53 PM