Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Coding in the AI era
/
Code prompt vocabulary
Why ask to keep delivery behind an injected callable?
from Code prompt vocabulary
Node 24
intermediate
2 min
Why ask to keep delivery behind an injected callable?
It creates a named seam where tests can observe or replace the side effect without changing orchestration
It guarantees that every delivery is idempotent
It makes rejected promises impossible
It proves that a framework mock is required
Check
Ask AI about this kata
Report an error
next kata
Which wording defines a reviewable failure contract?
Quiz
A new version is available
Reload