I have a bespoke little piece of software that I vibecoded for myself. Every Sunday, it walks me through a review of the week, and on the first Sunday of the month, a review of the month. Or that’s the idea. The scheduler behind it takes cron expressions, and cron can’t say “the first Sunday of the month”. So the monthly review starts up every Sunday at 5 PM, checks the date, and quits unless it’s one of the first seven days of the month. This past Sunday, November 22, it did just that. American Thanksgiving is this Thursday: the fourth Thursday of November, which is to say, another date that…
The year is 2025. You’re writing tests for networking code in your Swift app. You could hit the live API, but then your tests are slow, flaky, and fail whenever that third-party service has a bad day. You could stub URLSession, but then you’re maintaining two implementations of your networking layer. You could maintain JSON fixtures by hand, but there’s no way to capture real responses automatically, so your fixtures go stale without anyone noticing. There’s a better approach: Record real HTTP traffic once, then replay it instantly for every subsequent test run. This pattern has been…
A few years ago, Twitter user @38mo1, a chemistry teacher from Japan, posted a Halloween × Boolean logic meme that I liked enough to save to ~/Downloads. And ever since, I’ve had a yearly reminder every October 1st to open the image and get a seasonal chuckle 🎃 More recently, I wanted to teach my kids some advanced snake maths (long story 🐍) and remembered that the software 3blue1brown uses for their videos was open-source. Which is all to say that this year for Halloween, NSHipster is dressing up as a beloved YouTuber. How’d I do? Neat, right? Everything used to create that video is…
Ahh, @isolated(any). It’s an attribute of contradictions. You might see it a lot, but it’s ok to ignore it. You don’t need to use it, but I think it should be used more. It must always take an argument, but that argument cannot vary. Confusing? Definitely. But we’ll get to it all. To understand why @isolated(any) was introduced, we need to take a look at async functions. let respondToEmergency: () async -> Void This is about as simple a function type as we can get. But, things start to get a little more interesting when we look at how a function like this is used. A variable with this type…
You know what’s wrong with people? They’re too sure of themselves. Better to be wrong and own it than be right with caveats. Hard to build a personal brand out of nuance these days. People are attracted to confidence — however misplaced. But can you blame them? (People, that is.) Working in software, the most annoying part of reaching Senior level is having to say “it depends” all the time. Much more fun getting to say “let’s ship it and iterate” as Staff or “that won’t scale” as a Principal. Yet, for all of our intellectual humility, why do we write vibe code like this? if…
Language Server Protocol (LSP) revolutionized how programming languages integrate with developer tools. Model Context Protocol (MCP) aims to do the same for a new generation of AI tools. But before we lay our scene of two protocols (both alike in dignity), let’s take a moment to motivate the problem a bit more. Tool Use & Agents Today’s frontier models are extraordinary. But they’re limited in two key ways: They don’t know anything outside their training data They can’t do anything outside of predicting the next token To their credit, LLMs (kinda, sorta) understand these limitations, and have…
“Only Apple can do this” Variously attributed to Tim Cook Apple introduced Apple Intelligence at WWDC 2024. After waiting almost a year for Apple to, in Craig Federighi’s words, “get it right”, its promise of “AI for the rest of us” feels just as distant as ever. Can we take a moment to appreciate the name? Apple Intelligence. AI. That’s some S-tier semantic appropriation. On the level of jumping on “podcast” before anyone knew what else to call that. While we wait for Apple Intelligence to arrive on our devices, something remarkable is already running on our Macs. Think of it as a locavore…
.env files. If you’ve worked on a web application, you’ve probably seen one. While they certainly get the job done, .env files have shortcomings that can create friction in development workflows. We’ve touched on .env files in past articles about xcconfig files and secret management on iOS. But this week on NSHipster we’re taking a deeper look, exploring how the lesser-known 1Password CLI (op) can solve some problems many of us face managing secrets day-to-day. The Problem of Configuration Around 2011, Adam Wiggins published “The Twelve-Factor App”, a methodology for building modern web…
Chris Lattner often describes LLVM as a process of lowering. You start at the highest level of abstraction, source code written in a programming language like Swift or Objective-C. That code is parsed into an abstract syntax tree (AST), which is progressively transformed into lower-level, intermediate representations until it finally becomes executable binary. What if, instead of lowering source code down for the purpose of execution, we raised source code for the purpose of understanding? It’s a weird premise, I know. Bear with me. You could say that we already do this to some degree with…
Like everything else in 2020, this year’s WWDC had to be a little different if it was going to happen at all. When Apple first announced that the conference would be fully remote, nobody knew what that would look like, exactly. What parts of the dubdub experience would be kept in this new format? What details would be lost in translation? Could they actually pull it off? For context: Apple live-streamed its first keynote in 2013, and technical sessions in 2015. Attendees of WWDC 1997 could obtain a collection of CDs with video recordings of sessions — a far cry from the VHS tape for WWDC…
Read at the source
Your visit, your choice.
Optional Google Analytics helps us understand visits. Microsoft Clarity records masked interactions to improve the site. Optional tools stay off unless you choose them. Privacy details.