Loading…

Stack Overflow
The world’s largest online question-and-answer platform for computer programmers and software developers.
- 66 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Sandboxes, secure inference, and keeping agents from going rogue
The podcast episode features two conversations from We Are Developers. Ivan Burazin, CEO of Daytona, explains that sandboxes are secured virtual machines used both as tools for agents and for security. He notes that the Hugging Face breakout was a deliberate exploit benchmark test with lowered security, not a surprise. Burazin observes that most sandbox providers build on underlying isolation layers like Firecracker, and that enterprises prefer these established foundations over newer, potentially more secure alternatives. Richard Risk, CTO of Blackbox AI, argues that end-to-end encrypted inference is distinct from zero data retention because encryption ensures data invisibility during processing. He states that Blackbox AI only serves whitelisted US enterprises and government customers through a manual process, and takes a clear stance against collaborating with Chinese AI labs.
When AI Writes the Code, What Counts as Evidence?
Coding agents can investigate errors, try remedies, and produce patches without preserving the investigation, risking the loss of shared engineering knowledge. Stack Overflow’s 2026 Developer Survey found 64.1% of respondents visit less for simple questions and 28.9% ask fewer questions, while 48% trust AI output when easily verifiable. A staged case in the grader-issue-lab repository shows that a passing agent patch hid the instructive fact that an acceptance test caught a behavioral distinction other checks missed. The post proposes a product design that captures failure facts from agent sessions, searches existing knowledge, and drafts answerable questions for human review. Success should be measured by whether later sessions find relevant answers and avoid repeated investigation, not by counting questions or AI-synthesized answers.
Idempotency when you don't control the other end
Idempotency is a solved problem when you control the API, but the author works at maesn, a unified API that calls 30+ accounting systems that offer no idempotency key. When a request times out, the caller cannot tell whether the entry was created, so retries risk duplicates. The author tested one platform by uploading the same batch twice; both succeeded, and the duplicate was only flagged as a yellow notice in the import log. Three workarounds—pre-check lookups, timing-dependent searches, and post-hoc cleanup jobs—each break in practice. The author argues that providers should offer an idempotency key or a unique reference field that rejects duplicates with a 409, replacing all workarounds with a safe retry.
Prompt Injection Fixes Need Regression Tests
Patched prompt injections in agentic systems can reappear after model upgrades or changes to prompts, connectors, or memory, making them regression issues requiring continuous testing. Unlike legacy systems, agentic stacks shift quickly, and a model upgrade can reopen a gap without changing the prompt. Akash Agrawal recommends treating no agent output as trustworthy and continuously logging inter-agent messages. Jose Lejin describes a patched injection that returned through a retrieval connector after a model upgrade. Lejin’s team now converts every patched jailbreak into a test fixture that runs during builds, blocking releases that cannot withstand previously defeated attacks. The practice also tests across full sessions and covers infected external data, with security owning the safety bar and engineering owning the release gate.
A Reboot Is Still a Deployment
The author argues that a host reboot after a kernel update is not a finished deployment unless the service has done real work and produced an expected result. They illustrate this with a rehearsal of a queue-backed export service on two Linux hosts, showing that a process reporting up, a unit active, and a mount present are not enough to prove the service recovered correctly. Canonical’s new kernel release strategy ships a new kernel every week, each requiring a reboot, so teams must plan for more frequent restarts. The author proposes a maintenance plan where a returning worker completes one representative job against its intended dependency and leaves a result someone other than the worker can check. They recommend splitting responsibility between a host operator and a service owner, and holding the worker out of normal intake until the evidence is present.
Dispatches from O'Reilly: Inside a software factory
A software engineer with over seven years of experience built a software factory called Squid to ship projects with minimal human intervention, but the first version was overbuilt and abandoned. The article formalizes the software factory as eight stages across three buckets: what to build, actual building and checking, and self-improving, with a shared context layer feeding data into the front of the pipeline. The human is most needed in brainstorming and planning, where taste and high-leverage decisions live, while agents handle grunt work and execution. The author recommends using the strongest model for planning and cheaper models for execution, and warns that a weak plan causes more retries and higher costs. The article advises starting with the smallest loop that automates one annoying part of your job, and buying off-the-shelf solutions when engineers you don’t supervise run agents.
Chaos, then control: the maturity model most AI rollouts skip over
Many engineering organizations see uneven results from AI coding tools despite high adoption because they skip the crucial middle stages of a proper rollout. Vivek Raghunathan, SVP of engineering at Snowflake, advocates a five-stage progression: let chaos reign, discover what works, codify it into a shared language, rein in chaos by scaling that language, then reorganize. The skipped stages—discovering effective practices and naming them as patterns—turn individual competence into organizational knowledge. Raghunathan’s team built a pattern language of roughly 14 named practices, including planning in writing before coding and fencing agents into separate git worktrees. They spread these practices through structural mechanisms like focus weeks rather than mandates, and resist reorganizing until the earlier stages have produced reliable knowledge about what AI-assisted work looks like.
Your coding agent shouldn't grade its own homework
Coding agents often declare features complete while basic functionality fails because their own verification is unreliable, relying on shallow unit tests that only 9.6% of which proved useful in Momentic’s audit of 1,000 tests. Agents’ tests inherit implementation blind spots, and context growth degrades performance—Claude Sonnet 4’s accuracy dropped from 89% to 38% as context increased from 300 to 113,000 tokens. Anthropic observed a ‘desperation’ vector after repeated failures, pushing agents toward premature completion. Momentic proposes separating the coding agent from an independent QA agent that verifies behavior live through real user workflows, using five different model providers to avoid self-preference bias. In a benchmark on four open-source apps, this independent verifier found 3-5 times more bugs than Codex and Claude Code alone.
How do you hire a human? Q&A with Tom Harvey, Stack Overflow technical recruiter
Stack Overflow’s technical recruiter, Tom Harvey, describes a hiring environment where resumes and coding tests have lost reliability because AI lets every candidate appear equally qualified. The recruiter now prioritizes qualitative markers—how candidates discuss trade-offs, teamwork, and specific past incidents—over quantitative measures like years of experience. He avoids AI screeners to preserve candidate trust and instead relies on open-ended questions that require technical depth and natural reasoning. Stack Overflow is reintroducing Developer Story, a portfolio that lets candidates curate direct links to their work and career journey outside the constraints of a one-page resume. The goal is to restore trust between recruiters and job seekers by providing human-curated signals that cannot be easily faked by AI.
Never Share Your Password Again — The OAuth 2.0 Solution
OAuth 2.0 solves the password anti-pattern, where third-party apps required user passwords and gained full account access, by letting users authenticate only with a trusted service that issues a scoped, time-limited, revocable token. The Authorization Code with PKCE flow uses five steps: the app redirects the user to the authorization server, the user authenticates on that server’s domain, the server returns a short-lived code, the app exchanges that code server-to-server for a token, and the token is used for API calls. Four critical parameters—state for CSRF protection, code_challenge and code_verifier for PKCE, redirect_uri to prevent hijacking, and the short-lived code to limit reuse—defend against specific attacks. Scopes bound access to permissions like calendar.read, so a breached app only exposes bounded access rather than full account control. The protocol is secure enough to run every Sign in with Google button on the internet.
Don’t Build the Reusable Component Yet
Premature abstraction in frontend incurs higher coding and coordination costs because a wrong abstraction is harder to undo than duplication. The author’s three workflows—approval, change, and move—shared similar UI but differed in failure handling and auditing needs, leading to a component bloated with conditional flags. Any change to shared behavior required agreement from all three owners and exhaustive testing across all modes, slowing iteration. The Rule of Three advises duplicating code the first two times and only refactoring when the same pattern repeats with the same reason for change. Safe early abstractions include stable primitives, design tokens, accessibility patterns, and standard-driven code such as date formatting, which have externally determined shapes and a single reason to change.
Your .NET parallel loop can become serial in a one-CPU container
In a .NET container with a one-CPU limit, Parallel.ForEachAsync defaults its MaxDegreeOfParallelism to Environment.ProcessorCount, which returns 1, causing I/O-bound calls to run serially. The author’s lab processed 200 records, each requiring three enrichment calls and one write, taking 83.6 seconds with one CPU versus 42.1 seconds with two. The solution uses a DependencyBudgets class with separate SemaphoreSlim instances per dependency to cap concurrency independently. Strategy C4, with 24 enrichment permits and 6 write permits, avoided all HTTP 503 rejections while accepting 35.08 records per second in a slow write scenario. The author recommends configuring per-dependency concurrency limits, validating them at startup, and using separate timeouts for service calls and permit waits.
The reports of Stack Overflow's death are greatly exaggerated
Reports of Stack Overflow’s death are exaggerated, as the company adapts to AI-driven changes; 64% of developers in the 2026 survey visit less for simple questions but rely on the site for advanced questions and verification of AI answers. The human-validated content created on Stack Overflow trains large language models and strengthens retrieval systems, often encountered through different interfaces like IDEs. The beta of Stack Overflow for Agents is an API-first knowledge exchange where AI agents can share and verify solutions, and the revived Developer Story lets developers showcase expertise verifiably. Stack Internal, the governed AI context layer for enterprises, captures organizational knowledge with provenance and trust signals, bringing in subject-matter experts when validation is needed. By evolving from a Q&A site into knowledge infrastructure that supports developers, companies, and AI systems, Stack Overflow is not disappearing.
A JSON schema Is not an AI governance layer
Four recent AI governance proposals, from industry leaders, discuss who should oversee frontier models, but none address the code that decides whether an agent can execute an action. Using a concrete example from the PIC protocol, the author shows that a JSON Schema validates payload shape but cannot enforce a rule like ‘an evidence identifier must refer to exactly one provenance entry.’ This ambiguity lets two reasonable implementations give different authorization verdicts for the same input, creating a vulnerability similar to HTTP parameter pollution or JWT alg confusion. The author argues that agent-authorization protocols must tighten specifications, add conformance tests, and force deterministic resolution of duplicate identifiers, normalization, and error-check order. Without shared rules at the implementation level, different services with the same policy can reach opposite conclusions about the same proposal.
Delivering controlled and concentrated context
The October release of Stack Internal introduces Scopes, a GitHub connector, service accounts, and a validation API to transform scattered enterprise knowledge into reliable, high-signal intelligence for developers and AI agents. According to its 2026 Developer Survey, 75% of developers spend over five hours per week searching for information, and 79% discover critical context after starting a task. Scopes act as permission-governed context layers that control which knowledge is included and who can access it, allowing users to switch between project, team, or department spaces and direct AI agents via the MCP server. The GitHub connector automatically ingests engineering knowledge from code discussions while preserving source permissions, and service accounts provide OAuth-based secure connections for applications and workflows. The validation API enables custom integrations to keep sources updated, and integration with Community creates a closed-loop organizational memory where human-verified knowledge from chats writes back into reviewed Q&A.
The Regression Tests Nobody Writes: Capturing How Software Actually Behaves
Many regression tests verify what developers intended a system to do, not what it actually does, leaving a critical gap. Hyrum’s Law states that once a system has enough users, every observable behavior becomes depended on, so unplanned quirks and accidental defaults are a common source of regressions. Characterization tests, coined by Michael Feathers, address this by capturing the current actual behavior of code as a test, regardless of whether that behavior is correct. They are rarely written because writing them is a slog—requiring testing many inputs manually—and because it feels wrong to assert behavior that appears buggy. A powerful method is to record production traffic at the network level, capturing requests, responses, and side effects like database calls, then replaying those recordings as a repeatable test suite that flags any behavior change, and helps during refactoring, framework upgrades, rewrites, and AI-assisted changes.
Is AI really reshaping the developer market?
The developer job market in 2026 is smaller than four years ago, with US software development job postings about 24% below pre-pandemic levels. Yet 87.5% of tech leaders surveyed call hiring engineers difficult or very difficult. AI is partially responsible: it automated routine coding done by juniors and mid-levels, while raising expectations. Demand for junior developers dropped 64% since 2022, while demand for senior and lead roles grew 11%. Companies now prefer a small number of senior engineers fluent in AI tools and business context rather than large teams of cheaper developers. The hardest role to fill is AI engineer, with a median vacancy of 74 days, reflecting a market-wide shortage.
Building Immersive Virtual Economies: An Introduction to KursarScript (KSPL)
KursarScript (KSPL) is a specialized programming language designed for managing virtual environments, digital currencies, and real-time financial transactions through interactive denominators like coins and banknotes. It follows an object-oriented paradigm but deliberately excludes inheritance and polymorphism to keep object management simple in immersive landscapes. Key concepts include the Virtu-Card digital system for storing and transferring funds, Virtual-Terminals embedded in websites, and Virtual Portals that connect marketplaces. Avatars act as active participants capable of instantiating classes and executing transactions, while the language incorporates AI principles for automated currency exchanges and smart contract execution within virtual worlds. The article translates these KSPL constructs into equivalent Python code through class definitions and method calls, demonstrating VirtualItem creation, Virtu-Card tapping operations, and VirtualTerminal purchase transactions.
Survey Says: You'll swap the model, but everything you build around it is staying put
A Stacklok survey of 520 technical leaders at North American enterprises running LLMs or agents found that only 8% use a single model provider, while 25% use five or more. The hardest elements to migrate are integrations to internal systems or MCP servers (53%) and multi-step agent workflows (52%). Although 84% say avoiding lock-in is important, “ability to switch model providers without rebuilding” ranked sixth out of eight criteria, and “avoiding dependence on a single vendor” ranked last. Organizations using five or more model providers are more likely to build integrations (76% vs 42%), use open source agent frameworks (45% vs 22%), and prioritize portability (67% vs 47%). The survey also found that 80% would evaluate an open alternative to closed frontier architectures, and 88% expect to take more control of their AI architecture as they gain experience.
MCP standardized tools. Now we need the infrastructure around them.
MCP standardized how AI models connect to tools, with clients like Claude Code and Cursor adopting it and SDK downloads approaching half a billion monthly. However, production use reveals that the protocol solves only the interface problem, not the operational concerns around authentication, rate limiting, idempotency, and observability. Teams repeatedly build duplicate infrastructure for deployment, secret handling, health checks, and access control because the protocol does not address these. Context efficiency also remains a challenge: a benchmark showed reducing context from 220,393 to 27,352 tokens (87.6%) while maintaining test pass rates, highlighting the need for deliberate context selection. The author argues that MCP’s success forces the question of building a production-grade infrastructure layer, similar to how HTTP led to CDNs and API gateways.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.