Posts

The Secret Life of Claude: When Claude Code Gets It Wrong

Image
The Secret Life of Claude: When Claude Code Gets It Wrong Three ways Claude Code gets it wrong — and the discipline that catches all of them before they ship #ClaudeCode #CodingWithAI #SoftwareEngineering #AITools 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 precision matters and confidence is not the same thing as correctness. Timothy has arrived today in unusually good spirits. This, Margaret has learned, is sometimes cause for concern. What Timothy Was Proud Of He came through the door with the particular energy of someone who had solved something. "I fixed it," he said, settling into his chair with the satisfaction of a man who had earned his tea. "The user authentication bug. The one that's been sitting in the backlog for two weeks." "Tell me," Margaret said. "I described the problem to Claude Code — properly this time, the way we talked abo...

The Secret Life of JavaScript: The Scroll

Image
The Secret Life of JavaScript: The Scroll Unblocking the Compositor: How to Fix Mobile Scroll Lag #JavaScript #FrontEnd #MobileDev #WebDev Frozen Timothy swiped his thumb across his Android screen. The parallax dashboard he had spent all morning building lurched forward, froze for a fraction of a second, and then snapped to a new position. It felt like dragging a brick through mud. He dropped the phone on his desk and glared at his desktop monitor, where the exact same code was running flawlessly in his dark-themed IDE. "I don't understand," Timothy muttered. "I batched my DOM reads and writes. I used  requestAnimationFrame . The Main Thread is completely optimized, but the mobile experience is completely unusable." Margaret leaned against his cubicle wall, her signature dark roast coffee in hand. She picked up his phone, swiped the screen, and watched the UI stutter. "Your Main Thread might be optimized, but you are still forcing the browser to use it for ...

The Secret Life of Azure: The Architect’s Blueprint

Image
  The Secret Life of Azure: The Architect’s Blueprint Mastering complexity with planning agents and task decomposition #AIAgents #TaskDecomposition #AutonomousSystems #CloudArchitecture Autonomy & Planning The whiteboard was clean, except for a single, daunting user request Timothy had written in red:  "Analyze the last three months of archive logs, identify the top five recurring metadata errors, and generate a remediation script for the database." "Margaret," Timothy said, "the  orchestrator  is struggling. This isn't just a single task I can route or a quick status check for the  Traffic Controller . This is a project. I can't hard-code every step for a request this vague. The system has the tools, but it doesn't have the map to connect them." Margaret picked up a black marker and drew a clipboard icon above the orchestrator. "That's because you're giving the system a destination without a map, Timothy. For complex, multi-st...

The Secret Life of JavaScript: The Frame

Image
  The Secret Life of JavaScript: The Frame Stop fighting the browser: how to fix layout thrashing #JavaScript #WebPerformance #Frontend #requestAnimationFrame The Stuttering UI Timothy dragged his mouse across the dark IDE, intensely focused on the preview window. He was building a custom drag-and-drop kanban board. He clicked a task card and dragged it across the screen. Instead of gliding, the card stuttered. It lagged a few pixels behind his cursor, jumping frantically to catch up like a flipbook missing half of its pages. "I don't get it," Timothy sighed, dropping the mouse. "I am using the  setTimeout  chunking trick you showed me yesterday. The Event Loop is completely clear. The JavaScript execution is lightning fast. Why does the UI look like it is running on a dial-up connection?" Margaret leaned against his desk, watching the jerky animation replay on the screen. "Because JavaScript speed is only half the battle," Margaret said. "You fix...

The Secret Life of Claude Code: The First Prompt

Image
The Secret Life of Claude Code: The First Prompt Why the quality of your prompt is really the quality of your thinking #ClaudeCode #AIEngineering #DeveloperTools #CodingWithAI 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 precision is valued and vagueness is gently corrected. Timothy has arrived with a real problem and a prompt he is rather proud of. Episode 3: The Craft of the First Prompt What Timothy Brought In He arrived with his laptop already open, which Margaret took as a good sign. It meant he had been thinking before he walked through the door. "I have a real one today," he said, settling into his chair. "Not a toy example. An actual problem from the codebase." "Good," Margaret said. "Show me what you've written." He turned the laptop toward her. On the screen was a prompt he had prepared: "Fix the performance issue in my data p...

The Secret Life of Azure: The Traffic Controller

Image
  The Secret Life of Azure: The Traffic Controller Optimizing Cost and Latency with Intent-Based Routing. #Azure #AIAgents #CloudComputing #SoftwareArchitecture Optimization & Routing The whiteboard was covered in the evaluation rubrics from our last session, but Timothy was looking at a billing dashboard with a frown. "Margaret," Timothy said, "the system is accurate now, but it’s slow. And the cost of running every single request through the high-reasoning models is starting to add up. Most of the time, the user is just asking a basic status question, but we’re spinning up the whole  orchestrator  and the  evaluator  to answer it. We're using a sledgehammer to hang a picture frame." Margaret picked up a yellow marker and drew a diamond-shaped box at the very entry point of the system. "That’s because you’re treating every request like a crisis, Timothy. In the cloud, efficiency is about  Routing . We need to move from 'one-size-fits-all' to  I...

The Secret Life of AWS: The Perimeter (AWS WAF & AWS Shield)

Image
The Secret Life of AWS: The Perimeter (AWS WAF & AWS Shield) How to filter malicious traffic at the global edge. #AWS #WAF #Shield #Security Part 52 of The Secret Life of AWS Timothy was reviewing the CloudWatch dashboards for his newly deployed global architecture. The CloudFront distribution was successfully serving users in milliseconds, but he noticed an alarming anomaly. "We have a massive spike in traffic hitting the Checkout API," Timothy explained to Margaret, pulling up the X-Ray traces. "But these are not normal user requests. Someone is sending thousands of requests per minute from a handful of IP addresses. And look at the request payloads—they are injecting raw SQL commands into the URL parameters." Margaret leaned in to examine the logs. "You are experiencing an application-layer attack. CloudFront is doing exactly what it was designed to do: it is delivering traffic to your API Gateway as fast as possible. However, CloudFront does not inspect...