Intent and Acceptance: Knowing What "Correct" Means

Stephen Gruppetta 18 Lessons 6h 30m Updated intermediate best-practices js tools

Grace, the owner of The Second Draft, an independent bookshop, writes a one-line request: students get 15% off. Before anyone writes code, someone has to say what that means, and when a teammate or Code Mentor proposes a change, someone has to decide whether it does what Grace asked. In this course, that’s you. You’ll learn how to:

  • Write the intent behind a request: the problem, what’s true afterward, what must not change, and what’s out of scope
  • Find where two fair readings of a request part, and take the open questions to Grace
  • Turn an intent into acceptance criteria someone else can check without asking you
  • Read an inherited test suite as examples, and say what a green run leaves out
  • Read a change’s test edits first, and ask what an edited test no longer checks
  • Write one test per criterion with node:test, and watch each one fail for the right reason before you trust it

You’ll practice in exercises with automated tests and finish with a project: Grace’s gift cards. You’ll write the intent and criteria, test Quill’s gift-card change against them, and report to Grace which criteria it meets, which it misses, and which questions only she can answer.

This course is for programmers who’ve finished Intermediate JavaScript or have the equivalent: modules, nested data, higher-order functions, classes and custom errors. It follows Finding Your Way Around a Codebase You Didn’t Write and the debugging course, but the first lesson shows you how to get the shop’s code if you’re starting here, and it teaches the testing it needs. You’ll need Node.js, Git, a terminal, a code editor, and a browser.

What’s Included:

  • 18 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 6 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Reviewing What You've Learned

2 Lessons 29m

  1. 1. Reviewing What You've Learned06:30
  2. 2. Course Summary22:30

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses