Posts

The Secret Life of AI: Patience and Flexibility

Image
  The Secret Life of AI: Patience and Flexibility How to prompt, think, and get results from any AI tool #WorkingWithAI #Prompting #AIConfidence Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — and in every episode, they'll show you exactly how to get what you want from AI. Episode 1 The fog had settled early over the city, pressing itself against the library windows as though curious about what lay inside. Timothy arrived at his usual hour, unwound his scarf with the mechanical patience of a man performing a habit he no longer noticed, and sat down across from Margaret without a word of greeting. She did not look up from her book immediately. She never needed to. "Tell me," she said, turning a page. Timothy stared at the grain of the oak table. "I've been using it for three weeks now. The AI. For work." He paused. "I don't think it's working." Margaret closed her bo...

The Secret Life of Claude Code: Plan First, Code Second

Image
  The Secret Life of Claude Code: Plan First, Code Second Why the most important conversation with Claude Code happens before you begin coding #ClaudeCode #CodingWithAI #Programming #DeveloperLife Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where no one is expected to know everything, but everyone is expected to know what they don't know. Episode 8 You Need a Plan The evening had turned cold, and Timothy had come prepared for it this time — coat buttoned, scarf wound twice around, a general air of having thought ahead. Margaret noticed this when he came through the tall doors and filed it away without comment. He settled into the chair across from her and set his notebook on the table. It was open already, to a page that was mostly blank. This, too, she noticed. "I've been thinking about something since Thursday," he said. Margaret set aside the monograph she had been rea...

The Secret Life of Go: Error Handling (Part 3)

Image
  The Secret Life of Go: Error Handling (Part 3) Behavioral errors, interfaces, and the retry loop #Golang #ErrorHandling #SoftwareArchitecture #BackendDev Eleanor is a senior software engineer. Ethan is her junior colleague. They work in a beautiful beaux arts library in Lower Manhattan — the kind of place where coding languages are discussed like poetry. Episode 32 Ethan was writing a background worker that synced data with a notoriously flaky external API. He had written a loop to retry the request if it failed, but the  if  statement was getting out of hand. "Look at this monster," Ethan said, pointing at his screen as Eleanor walked by with her tea. // Ethan's brittle retry logic response, err := externalAPI. FetchData () if err != nil { // Check every possible network failure identity if errors. Is (err, network.ErrTimeout) || errors. Is (err, network.ErrConnectionReset) || errors. Is (err, network.ErrDNSTimeout) { fmt. P...

The Secret Life of JavaScript: The Mutation

Image
  The Secret Life of JavaScript: The Mutation Stop polling the DOM: Mastering the MutationObserver API #JavaScript #WebDev #FrontEnd #MutationObserver The Clunky Integration Timothy stared at the screen, watching the network tab of his DevTools cascade with requests. The marketing team had mandated the integration of a clunky, third-party chat widget. The external script was massive, loaded completely asynchronously, and injected its UI directly into the application's DOM at an entirely unpredictable time. Timothy's task was simple: attach a custom analytics tracking event to the vendor's "Chat Now" button. But because he didn't control the script, he had no idea when that button would actually exist. "I had to hack it," Timothy admitted, bracing himself as Margaret walked over with her signature dark roast coffee. He pointed to his monitor. "The vendor doesn't provide a 'ready' callback. So I just set up a loop to keep checking the ...

The Secret Life of Azure: The Model Distiller

Image
  The Secret Life of Azure: The Model Distiller Transferring reasoning from GPT‑4o into Phi‑3 #AzureAI #ModelDistillation #SyntheticData #SLM Episode 32 The green marker was back in Timothy’s hand, but he was staring at two different outputs on his screen. One was a perfectly formatted, professionally toned response from the  Lead Planner . The other was a technically correct but "robotic" and slightly clumsy response from the  Phi-3 Scout . "Margaret," Timothy said, "the Scout is fast, but it lacks the  nuance  of the bigger model. It knows the facts, but it doesn't speak 'Library.' It feels like we’re losing our soul every time we optimize for speed. Do I really have to choose between a slow genius and a fast amateur?" Margaret walked over to the whiteboard and drew a large, ornate book and a small, blank notebook. She drew an arrow of light flowing from the big book into the small one. "That’s the  Intelligence Gap , Timothy. You don...

The Secret Life of AWS: Canary Deployments (AWS CodeDeploy)

Image
  The Secret Life of AWS: Canary Deployments (AWS CodeDeploy) How to limit the blast radius of a bad release using automated traffic shifting. #AWS #CodeDeploy #Canary #DevOps Episode 58 Timothy was looking at a spike of HTTP 500 errors on his CloudWatch dashboard. He let out a heavy sigh as Margaret walked into the studio. "The new CodePipeline workflow is incredibly fast," Timothy explained, rubbing his temples. "I merged a new feature for the checkout microservice, and the pipeline deployed it in minutes. The problem is, my code had a subtle logical bug that the unit tests did not catch. The pipeline instantly replaced our production Lambda function, and 100% of our active users experienced checkout failures for four minutes until I reverted the Git commit." "You have discovered the danger of an 'All-at-Once' deployment strategy," Margaret said gently. "Automation is powerful, but speed without safety is a liability. Your pipeline executed ...