惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
N
News | PayPal Newsroom
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
博客园 - Franky
SecWiki News
SecWiki News
Recent Announcements
Recent Announcements
T
Troy Hunt's Blog
The Register - Security
The Register - Security
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
S
Security Affairs
博客园 - 司徒正美
S
Schneier on Security
I
InfoQ
博客园_首页
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Forbes - Security
Forbes - Security
腾讯CDC
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
V
Vulnerabilities – Threatpost
C
Check Point Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
Schneier on Security
Schneier on Security
O
OpenAI News
K
Kaspersky official blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
User Story vs Use Case: A Developer's Guide to Getting It Right
CJ · 2026-05-16 · via DEV Community

Every sprint planning session has that moment. Someone writes "Use Case: User logs in" on the board, and someone else says "shouldn't that be a user story?" The room goes quiet. Nobody's totally sure.

After years of working on agile teams, I've seen this confusion cost real time — stories written the wrong way, requirements that don't translate to working software, and planning sessions that go in circles.

Here's the definitive breakdown.


The One-Line Difference

A user story describes what a user wants to achieve and why.

A use case describes how a system behaves in response to user actions.

User stories are about goals. Use cases are about interactions.

That's it. Everything else flows from this.


What Is a User Story?

A user story follows a simple format:

As a [type of user], I want to [do something] so that [I get some value].

Example:

As a returning customer, I want to save my payment details so that I can check out faster next time.

User stories are intentionally vague about implementation. They don't tell engineers how to build something — they tell the team why a user needs something. The conversation about how happens during sprint planning and estimation.

What makes a good user story?

Follow the INVEST criteria:

  • Independent — can be built without depending on another story
  • Negotiable — not a contract, open to discussion
  • Valuable — delivers value to a real user
  • Estimable — team can estimate the effort
  • Small — fits in one sprint
  • Testable — has clear acceptance criteria

What user stories are NOT

User stories are not technical tasks. "Refactor the auth module" is not a user story — it has no user and no value statement. That's a task or a tech debt ticket.

User stories are not detailed requirements documents. If your user story has five paragraphs of conditions and edge cases, you've written a use case (or a spec doc) in disguise.


What Is a Use Case?

A use case describes the sequence of interactions between a user (called an actor) and a system to achieve a specific goal.

Use cases have formal structure:

Use Case: User Login

Actor: Registered User
Precondition: User has an account
Trigger: User navigates to login page

Main Flow:
1. User enters email and password
2. System validates credentials
3. System creates session
4. System redirects to dashboard

Alternate Flow (invalid credentials):
2a. System displays error message
2b. User can retry or reset password

Postcondition: User is authenticated

Enter fullscreen mode Exit fullscreen mode

Use cases are thorough. They cover the happy path and every alternative and exception flow. They're designed to leave nothing ambiguous.

Where use cases come from

Use cases originated in object-oriented software design in the early 1990s, introduced by Ivar Jacobson. They were the dominant requirements format before agile became mainstream.


Side-by-Side Comparison

User Story Use Case
Focus User goal and value System behavior and interaction
Format One or two sentences Structured document
Length Short Long
Detail level High-level, intentionally vague Detailed, covers all flows
Written by Product owner, team Business analyst, architect
Used in Agile/Scrum backlogs Traditional/waterfall, system design
Covers exceptions No (handled in AC) Yes (alternate flows)
Implementation detail None Sometimes
Lifespan Disposable after completion Reference document

When to Use Each

Use user stories when:

  • You're working in an agile team with sprints
  • Requirements will evolve — you want flexibility
  • You need the team to own the how, not just execute a spec
  • You're building a product with real users (not just a system integration)
  • You want to keep planning sessions fast

Use use cases when:

  • You're building a complex system with many edge cases that must be documented
  • You have compliance or regulatory requirements (finance, healthcare, government)
  • You're working on a large project with multiple teams and need a shared reference
  • You're designing APIs or system integrations where every flow must be specified
  • Your client or contract requires formal requirements documentation

The honest answer for most teams

If you're a startup or a product team running two-week sprints: use user stories, always. Use cases will slow you down and become outdated before the sprint ends.

If you're building banking infrastructure, a healthcare system, or anything where "we'll figure it out in the sprint" isn't acceptable: use cases belong in your process, even if you still use stories for sprint planning.


The Real-World Hybrid

Most experienced agile teams don't pick one or the other. They do this:

  1. Write user stories for the backlog and sprint planning
  2. Add acceptance criteria (in Given/When/Then format) to each story
  3. Let acceptance criteria handle what use cases used to handle — the alternate flows and edge cases

Here's the same login example as a story with acceptance criteria:

Story:

As a registered user, I want to log in with my email and password so that I can access my account.

Acceptance Criteria:

Given I am on the login page
When I enter valid credentials and click Login
Then I should be redirected to my dashboard

Given I am on the login page
When I enter an invalid password
Then I should see an error message and remain on the login page

Given I have failed to login 5 times
When I attempt to login again
Then my account should be locked and I should see instructions to reset my password

Enter fullscreen mode Exit fullscreen mode

This approach gives you the speed of user stories with the edge-case coverage of use cases.


Common Mistakes

Mistake 1: Writing use cases disguised as user stories

❌ As a user, I want the system to validate my email format, check it against the database, return a 401 if not found, and redirect to the dashboard if authenticated.

✅ As a registered user, I want to log in so that I can access my account.

The first one describes system behavior in user story clothing. Keep stories focused on user goals.

Mistake 2: Writing user stories with no acceptance criteria

A user story without acceptance criteria is just a wish. How does the developer know when it's done? How does QA know what to test? Always write AC.

Mistake 3: Using use cases for everything in agile

Use cases create documentation overhead that slows agile teams down. If your team is spending more time writing use case documents than shipping features, something is wrong.

Mistake 4: Confusing user stories with tasks

Stories describe user value. Tasks describe engineering work. Both belong in your backlog — but don't mix them up or your sprint velocity metrics become meaningless.


Quick Reference

Write a user story when you can answer:

  • Who is the user?
  • What do they want to do?
  • Why do they want to do it?

Write a use case when you need to answer:

  • What are all the possible flows through this interaction?
  • What happens when something goes wrong?
  • What are the pre and post conditions?

Write acceptance criteria when you need to answer:

  • How do we know this story is done?
  • What are the specific scenarios QA should test?

Tools That Help

If you're writing user stories in a scrum team, a few tools that help:


TL;DR

  • User stories = user goals, short, agile-friendly
  • Use cases = system interactions, detailed, documentation-heavy
  • Most agile teams: user stories + acceptance criteria = best of both worlds
  • If you're not sure which to use: start with a user story and add AC

The format matters less than the conversation it creates. The best user story or use case is the one that helps your team build the right thing.


This post was originally published at scrumtool.io/blog/user-story-vs-use-case

If you found this useful, ScrumTool has free tools for planning poker, retrospectives, and async standups — all free to start.