Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Senior Deep-Dives
›
Module 6 · Architecture & Code Review
›
Naming: domain language wins
quiz
84 / 161
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Better name for a function that ends a subscription? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Better name for a function that ends a subscription? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
deactivate() — symmetric with activate() so the two state transitions read as a single ORM-friendly pair.
B
cancel() — matches how customers/PMs/CS talk about it. Domain language reduces translation friction.
C
terminate() — borrowed from POSIX `SIGTERM` so backend engineers immediately recognise the cleanup intent.
D
expire() — Stripe's billing API event is `customer.subscription.expired`, so mirror their wire format exactly.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…